Author Topic: Android Saving Files  (Read 153 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1741
    • View Profile
Android Saving Files
« 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?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10758
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android Saving Files
« Reply #1 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.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1741
    • View Profile
Re: Android Saving Files
« Reply #2 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...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3929
    • View Profile
    • Space Fractal
Re: Android Saving Files
« Reply #3 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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.