Where on the android device can I save data...?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Where on the android device can I save data...?

Post by genie »

Where on the android device can I save data such that it is never deleted even when the app is deleted/uninstalled?

Thanks,
Genie
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Where on the android device can I save data...?

Post by Mark »

Hi Genie,

Try

Code: Select all

specialfolderpath("documents")
Data will be retained when an update is installed. If the user chooses to remove your app together with all data, then this decision is up to the user and there's nothing you can do about it.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Where on the android device can I save data...?

Post by snop21 »

Hi Mark,

Will just ask how can I get the database file in "documents" on android device?

Thank you
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Where on the android device can I save data...?

Post by Mark »

Hi,

Actually, this question isn't completely clear. Elsewhere, I wrote that you can use several ways to backup data, e.g. using PHP or FTP. Dropbox is also an option, but probably not the best option for you.

The app itself should always have access to the database. So, it is the app that should create a dump of the database and store it elsewhere, e.g. on a server.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Post Reply