-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 4.4 and SD card #275
Comments
Version 52 has been released to the market. In my case the path was
The simple/detailed screen should show you the default path. If you have ES File Explorer or Astro File Explorer installed, you can click on the path and it will open those apps to the directory. |
Thank you for the improvement. I may have not been completely clear, but what I called I SD card was actually the external SD card (typically the micro SD card that you insert in your phone), not the built-in main flash memory. On my S4 it would be: /storage/extSdCard/Android/data/com/mendhak.gpslogger/files which is not something people would easily guess. If I ask gpslogger to write files anywhere under /storage/extSdCard that is not /storage/extSdCard/Android/data/com/mendhak.gpslogger it fails silently (an Android 4.4 "feature").
Many thanks. |
It's not easy to be clear about this, this has been one of the most confusing topics I've had to read up on. Android classifies things as primary external storage and secondary external storage and Google have done a very poor job of communicating it. See this. In any case, I think the permission check is much easier, I've just tried a File.canWrite and it does the trick. I'm also going to show a MessageBox to indicate when they've chosen a bad folder. I didn't think to do this in the release just now. I'll have a think about how to do a helper option, that's not so straightforward to implement though the idea is easy. |
Following recent changes in Android 4.4, applications are not allowed to write outside of their application folder on the SD card, so GPSLogger should give the ability to create it application folder on the SD card and give the user some kind of choice to select it. Currently if I just select any directory on the SD card (on my Galaxy S4), there is no error but no file is created, and data is silently lost.
The text was updated successfully, but these errors were encountered: