finding documents files

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

finding documents files

Post by cwkalish » Tue Feb 28, 2012 7:17 pm

Hi. I tried asking this question a while back, but never really figured out the answer:
I can't find files that my android app writes into the documents folder.

I would like to have access to these files from outside of the app. (for example, downloading to a computer).

Thanks for any suggestions.
-Chuck

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: finding documents files

Post by jacque » Wed Feb 29, 2012 10:27 pm

I'm not quite sure how it works, but all the Android folders are virtual. You won't find them with a file utility. They may be somewhere that requires root access but I haven't looked.

You can write to the SD card though, if you enable that in the standalone settings. That will put your files into a real folder. I haven't tried it, so I'd be interested in hearing how it goes.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

Re: finding documents files

Post by cwkalish » Thu Mar 01, 2012 3:22 am

Thanks. I kind of suspected that the documents folder/files didn't really exist (or were sandboxed). How do I write to the sd card? will "/sdcard/myfile" do the trick?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: finding documents files

Post by jacque » Thu Mar 01, 2012 6:25 pm

I think that should work. It's customary to create a folder with your app name and then write files into that. Make sure you select the option to write to the SD card in the standalone builder.

I'm going to need to do this myself pretty soon but I haven't had time to try it yet. Let us know so that I can continue to be lazy. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

Re: finding documents files

Post by cwkalish » Tue Mar 06, 2012 6:24 pm

Well, "/SDcard/foldername/" is not working as a path. I notice in "file expert" the sdcard is preceded by "/mnt/" does that need to be part of a file path?

Post Reply