We've had an Android app accessing files in the folder: /storage/emulated/0/Documents
When generated with Livecode 905, everything's fine.
When generated with Livecode 962, if we upgrade the new apk (did not remove the previous app), everything's fine, but if we remove the previous apk then install the new apk, we cannot access the folder!
Seems there's some system flag being set during the installing process to control the access of the Documents folder, how could we set this in Livecode new version?
(we've setup Android permissions for the external folders after all installations)
Cannot access Android Documents folder in Livecode new version
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 6
- Joined: Tue Apr 17, 2018 3:31 pm
Re: Cannot access Android Documents folder in Livecode new version
Perhaps there's a security enhancement in Android to prevent this? I can see why they might do that.
I Googled: storage/emulated/0 permission denied
and there were various people with permissions problems.
Have you upgraded Android Studio (or changed the API level) since your 9.0.5 app?
I Googled: storage/emulated/0 permission denied
and there were various people with permissions problems.
Have you upgraded Android Studio (or changed the API level) since your 9.0.5 app?
-
- VIP Livecode Opensource Backer
- Posts: 7235
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Cannot access Android Documents folder in Livecode new version
There's a special folder path you could try for that:
Make sure you've set the entitlement in the Android standalone settings.
Android did get more restrictive about accessing files outside the app sandbox but see if that still works.
Code: Select all
specialFolderPath("external documents")
Android did get more restrictive about accessing files outside the app sandbox but see if that still works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com