Page 2 of 2

Re: android external SD save/delete problem

Posted: Wed Aug 17, 2016 1:20 pm
by xabierpayet
ok, as i understand, reading this link, is not possible solve this in all the phones, i need rewrite code xD
Thanks

Re: android external SD save/delete problem

Posted: Thu Dec 08, 2016 11:09 am
by zylesea
If I understood right (got an issue with my writing routines on an Android 6.x device when attempting to write to /storage/emulated/0"), in newer Android verions this became even more complicated, as you don't get the general permission that easily to write to any location, but only to the private app drawer.

Re: android external SD save/delete problem

Posted: Thu Dec 08, 2016 8:11 pm
by xabierpayet
i have the same problem, but as i understand is not possible solve it, i need write to the external sd with an app, and only can use it in one of my three devices

Re: android external SD save/delete problem

Posted: Thu Dec 08, 2016 10:13 pm
by zylesea
I think it's possible to solve if you write the desired storage location to the androidmanifest.xml. The app should ask at runtime then for permission. Dunno how to add own content to androidmanifest.xml though...
Anyway writing to the app's private drawer should work always and I will proceed by just using that location instead of my originally desired one.

Re: android external SD save/delete problem

Posted: Thu Dec 08, 2016 10:49 pm
by xabierpayet
i know it, but my program have 9 gb of data, and need use an external memory

Re: android external SD save/delete problem

Posted: Fri Dec 09, 2016 12:51 am
by zylesea
xabierpayet wrote: my program have 9 gb of data
Well, that's quite a bit of course...

Re: android external SD save/delete problem

Posted: Sun Dec 11, 2016 12:03 pm
by airsoftsoftwair
zylesea wrote:I think it's possible to solve if you write the desired storage location to the androidmanifest.xml. The app should ask at runtime then for permission. Dunno how to add own content to androidmanifest.xml though...
Currently not possible, but I think I can implement support for customizing the manifest in the next update of the APK Compiler.

Re: android external SD save/delete problem

Posted: Fri Mar 01, 2019 9:16 pm
by airsoftsoftwair

Code: Select all

- New: APK Compiler now allows you to make modifications to the build.gradle and AndroidManifest.xml
  declarations; this can be useful in connection with custom code, e.g. if you need to add some
  permissions to the manifest