Android Download Folder

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
patrickshing
Posts: 6
Joined: Tue Apr 17, 2018 3:31 pm

Android Download Folder

Post by patrickshing » Wed May 09, 2018 4:42 am

How can I access the Android Download Folder?

I wish to move a download file into my apps database & do some further processing, but don't know where could I access the file in LC.

Please help.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android Download Folder

Post by jacque » Wed May 09, 2018 9:55 pm

I don't see a special folder path for the public Downloads folder, which is what we'd need. Is your app downloading the file itself? If so, you can save it to your app's "documents" folder and work with it from there.

If the file is user-generated then it gets trickier. Every manufacturer and Android OS version can vary. On my Nexus tablet, the path is "/storage/emulated/0/Downloads" but on github they suggest "/storage/sdcard0/Download" and there are other variations depending on a number of factors.

If possible, I'd have the app download the file itself, where you can control its location.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Talking LiveCode”