Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK needs a CheckPermissions for Storage (accessing and loading images from gallery)

Author
Message
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 21st Sep 2018 07:48
My app stopped loading images from my gallery yesterday on my Android device and I could not work out why as it was working ok for other users. I eventually found out that I've somehow turned off permissions for "Storage" in my device settings for the app.

I turned it on and it worked. But I can't see a CheckPermissions for Storage so there's no way for the app to check if it has permissions to access the gallery and load images.

When the permissions is off the app will still access the gallery but it won't load the image the user selects. With the storage permission off it probably shouldn't even access the gallery.

Any ideas on how I can get around this in the meantime?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Sep 2018 16:28
The "WriteExternal" permission will allow access to the storage device.
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 26th Sep 2018 12:09
I already had that one on. This is accessing the gallery to load images, not save. Try a simple project. Turn off permissions to access Storage in the device menu for the app and then try and load an image from the gallery. The gallery will open and it will let you select an image but AppGameKit won't actually load it. Not until you go back into settings and turn Storage on.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Sep 2018 02:18
WriteExternal is for both reading and writing in AppGameKit, it is called Storage in the Android permission settings. Since gallery images are stored in an area outside the protected app folder it needs the storage permission to access them.

Login to post a reply

Server time is: 2024-04-19 23:35:42
Your offset time is: 2024-04-19 23:35:42