Android paths for apps data files

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Android paths for apps data files

Post by andyh1234 » Sat May 02, 2020 5:48 pm

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

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Android paths for apps data files

Post by andyh1234 » Sun May 10, 2020 1:22 pm

Solved...

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

Works for me.

Post Reply

Return to “Android Deployment”