How to search a file?

JorgeMC

Member
Licensed User
Longtime User
Good evening, I'm implementing a part of my program in which I would like to find a file and make a backup of this. Exactly would be to backup the Whatsapp conversations, but do not know how I can do to capture the path of that file (or any other).

A greeting and thanks.
 

JorgeMC

Member
Licensed User
Longtime User
Thanks Erel, I have a question, you could search through terminal without being root, and take the value of that variable somehow?

It would be nice to implement a file search for a future version if possible.

Thank you!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It would be nice to implement a file search for a future version if possible.
You can already search for a file with File.ListFiles. The problem is that you need to know the file name. It is also possible that the app stores the files in its internal folder which is not accessible by other apps.

I have a question, you could search through terminal without being root, and take the value of that variable somehow?
Sorry but I don't understand the question.
 
Upvote 0

JorgeMC

Member
Licensed User
Longtime User
Ok Erel. In this case the file in question is called msgstore.db.crypt and in the case of my SGS2 is in / storage/sdcard0/Whatsapp/Databases (the route is showing Root Explorer).

What would be the command to store the path of the directory and file?
I'm a little confused with the use of this command ... forgive but it's Monday: S

thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…