Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed an issue related to retrieving the external storage location.
Normally you would use the method "Environment.getExternalStorageDirectory()" to find the location to the SD card. However on some phones, this returns the wrong location (it will probably return /mnt/sdcard), most likely it will point to the internal storage. On some phones, the SD card is actually mounted on /mnt/sdcard-ext (Motorola) or /mnt/sdcard/external_sd (Samsung). This commit solves the issue by manually checking the possible storage locations (as reported on Stackoverflow) and will return this location if it is writable. If none of the predefined storage locations exist (or arent writable) it will return the default path by using "Environment.getExternalStorageDirectory()" More information about this Android related issue can be found here: - http://stackoverflow.com/questions/5694933/find-an-external-sd-card-location - http://stackoverflow.com/questions/5524105/how-could-i-get-the-correct-external-storage-on-samsung-and-all-other-devices - http://beyondpod.com/support/index.php?/Knowledgebase/Article/View/30/0/how-to-change-the-location-of-downloaded-podcasts
- Loading branch information