android external SD save/delete problem

Report any Hollywood bugs here
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: android external SD save/delete problem

Post by xabierpayet »

ok, as i understand, reading this link, is not possible solve this in all the phones, i need rewrite code xD
Thanks
zylesea
Posts: 227
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: android external SD save/delete problem

Post 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.
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: android external SD save/delete problem

Post 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
zylesea
Posts: 227
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: android external SD save/delete problem

Post 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.
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: android external SD save/delete problem

Post by xabierpayet »

i know it, but my program have 9 gb of data, and need use an external memory
zylesea
Posts: 227
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: android external SD save/delete problem

Post by zylesea »

xabierpayet wrote: my program have 9 gb of data
Well, that's quite a bit of course...
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: android external SD save/delete problem

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: android external SD save/delete problem

Post 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
Post Reply