android external SD save/delete problem

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

Re: android external SD save/delete problem

Post by xabierpayet » Wed Aug 17, 2016 1:20 pm

ok, as i understand, reading this link, is not possible solve this in all the phones, i need rewrite code xD
Thanks

zylesea
Posts: 199
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: android external SD save/delete problem

Post by zylesea » Thu Dec 08, 2016 11:09 am

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: 181
Joined: Fri Feb 24, 2012 9:34 am

Re: android external SD save/delete problem

Post by xabierpayet » Thu Dec 08, 2016 8:11 pm

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

Re: android external SD save/delete problem

Post by zylesea » Thu Dec 08, 2016 10:13 pm

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: 181
Joined: Fri Feb 24, 2012 9:34 am

Re: android external SD save/delete problem

Post by xabierpayet » Thu Dec 08, 2016 10:49 pm

i know it, but my program have 9 gb of data, and need use an external memory

zylesea
Posts: 199
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: android external SD save/delete problem

Post by zylesea » Fri Dec 09, 2016 12:51 am

xabierpayet wrote: my program have 9 gb of data
Well, that's quite a bit of course...

User avatar
airsoftsoftwair
Posts: 2985
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: android external SD save/delete problem

Post by airsoftsoftwair » Sun Dec 11, 2016 12:03 pm

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: 2985
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: android external SD save/delete problem

Post by airsoftsoftwair » Fri Mar 01, 2019 9:16 pm

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