Page 1 of 1

Android paths for apps data files

Posted: Sat May 02, 2020 5:48 pm
by andyh1234
Hi,

Im trying to port over a desktop app to Android (and iPhone when I get one), but have run into an early problem with data files.

My app creates and uses a few data files and a couple of databases. I setup the base path for these as a global and reference that throughout the app, but I can't figure out what the path should be for the mobile devices.

I can see there is a permission for external storage, do I need to set that as I'm not interested in sd cards etc, just storing a few preference files for my apps own internal workings.

Thanks

Andy

Re: Android paths for apps data files

Posted: Sun May 10, 2020 1:22 pm
by andyh1234
Solved...

put specialFolderPath("documents") & slash into tPath
set the defaultfolder to tPath

Works for me.