Android Question Change location returned by GetSafeDirDefaultExternal

Patrick Clark

Active Member
Licensed User
I am using GetSafeDirDefaultExternal to set folder location for files but it always returns

/storage/emulated/0/Android/data/b4a.example/files

How do I make it return an application specific folder?

eg. if my application is called MYAPP I would like to store my files in

/storage/emulated/0/Android/data/MYAPP/files
 
How do I make it return an application specific folder?
It IS a app specific folder. It is the folder for the app with the packagename b4a.example

Give your app another packagename and the folder will change.

You should not use b4a.example at all... You should always use a unique packagename for each app you install.
 
Upvote 0
Don, I'm curious about this...

At first I didn't understand what "STRG-B" meant, because on my PC it's "CTRL-B". Is the difference due to some difference in our keyboards/region, or was it just a typo?
 
Upvote 0
At first I didn't understand what "STRG-B" meant, because on my PC it's "CTRL-B". Is the difference due to some difference in our keyboardsRegion?
Yes. sorry. On a german Keyboard it is STRG. Short for "Steuerung" which is the german word for Control.

I´ve edited my post to use CTRL ;-)
 
Upvote 0
Ah!

..and just learned a little german!
 
Upvote 0
Back
Top