miku-nyan / Overchan-Android

Meta Imageboard Client
http://miku-nyan.github.io/Overchan-Android
GNU General Public License v3.0
113 stars 53 forks source link

Cannot save files to external SD card #87

Open DerVerruckteFuchs opened 8 years ago

DerVerruckteFuchs commented 8 years ago

I am able to choose the file path for downloads so that it is on an external SD card. However, when attempting to save a file to an SD card, the Overchan folder is not created nor is the file saved. I'm running Marshmallow and I think it has something to do the the Storage Access Framework being different from that in Lollipop. I think there was some backwards compatibility with older methods used to access external SD cards in Lollipop that is no longer available Marshmallow. Permissions may also be a possibility, assuming they aren't a part of the same issue.

miku-nyan commented 8 years ago

Overchan should request the permission, if required. Anyway, try to set this permission manually (in System Settings), is it works? Did you choose the full path to SD card? (eg. /mnt/...)

Also I think previous versions could determine the default path incorrectly (in Marshmallow if permission was not set during the first run; this commit should fix it: https://github.com/miku-nyan/Overchan-Android/commit/73b645a475f9c7b90e5674bb8455ab885eee61b2), try to install the last version (1.5.1), and then clear the file path for downloads in preferences and try again.

James-E-A commented 8 years ago

Lollipop here.

What I did to work around Overchan's lack of support was to use an external file manager (I used FX File Explorer, but you could do this to the SD card from a computer if you wanted to) to create the folders Android>media>nya.miku.wishmaster on the SD card, then set the Downloads directory (⅗ of the way down the main Preferences menu) to /storage/external_SD/Android/media/nya.miku.wishmaster.

This works reasonably well and approximates how it "would" be done if the app actually supported saving images to the external SD card.

Two points to know before attempting this:

James-E-A commented 8 years ago

It would be nice, though, if there were some way to easily set the SD card as the download location. Maybe have radio buttons? "Internal Storage" / "External SD" (which would use native Android API to check the external storage location) / "custom directory"

Then, since it would be managed by the app, it would be possible to have fallback to the internal storage if the SD card were unexpectedly removed or broke.