GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2020-Oct-15

Title: Android Saving Files
Post by: MrPlow on 2020-Oct-15
Hi
did anyone have success saving and finding files on android lately?
I cannot seem to get the app to save into Media folder or elsewhere?
Title: Re: Android Saving Files
Post by: Kitty Hello on 2020-Oct-17
Media is protected. You should save to PLATFORMINFO$("APPDATA").
You need the request the permissions. Seach for "android permission" on this forum. There is a function somewhere.
See my BlueTooth Printer project, it requests them.
Title: Re: Android Saving Files
Post by: MrPlow on 2020-Oct-17
Thanks Gernot
Ideally I would want the image saved to Gallery on the Android device...but if that's not possible then knowing where to find the image is key...
Title: Re: Android Saving Files
Post by: spacefractal on 2020-Oct-18
its require a permission from the user as Media folder is procected and then also return its path if you get granted.

This require some added java code in requestPermission java code and then return a path rather than "1" or "0".

Im have no plans to do that currectly.