quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
1.99k stars 882 forks source link

Save to External Sd Card not working on 4.4 #392

Closed ahmedre closed 10 years ago

ahmedre commented 10 years ago

got an email from a user about this for 4.4, and many other emails without many details that it is broken for them (they don't see the option even). we should see if this works on 4.4 and if not, we should see how we can fix it.

ahmedre commented 10 years ago

another user specifically said this broke for them on 4.4 there are some changes on 4.4 due to permissions - see: http://commonsware.com/blog/2014/04/09/storage-situation-removable-storage.html

quote from above link: "As a result, apps can read files on removable media using the various undocumented and unsupported tricks for finding removable media. However, apps cannot write to or otherwise modify such removable storage. Note that device manufacturers themselves may have ways of dealing with this, but ordinary app developers do not."

so i am not sure if we can do anything about it - but some users say that file managers are getting around this, so we should investigate.

ahmedre commented 10 years ago

so i did a little bit of searching - essentially, things get a little better and a little worse - on KitKat, we don't have to go through all these hoops to figure out if the device has an external sdcard (and, if so, where it is, etc). the unfortunate piece is that we can't write /external_sdcard/quran_android anymore, but we can write to our private application directory on the external sdcard.

the consequence of this is that uninstalling the app will kill all the data (audio, pages, etc) for the user as well.

ahmedre commented 10 years ago

sent apks to some users and am also trying to get a device to test myself, but in theory, that commit might fix it.