altosdroid: Switch storage to media dir
authorKeith Packard <keithp@keithp.com>
Sun, 10 Oct 2021 03:58:26 +0000 (20:58 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 10 Oct 2021 03:58:26 +0000 (20:58 -0700)
commit4b3ccb73a26f91917d327558295506ce3c02d684
tree2de10bdfcdfdd70d01b63956ec7b3f2fcf7b5bfe
parent536e53c2e17b37df8c65d2f6921a5d68791a7789
altosdroid: Switch storage to media dir

Even with the WRITE_EXTERNAL_STORAGE permission, we appear to no
longer have permission to write to a random external storage
dir. Instead, we only have permission to write to an app-specific dir,
buried deep in the directory tree. We can get that directory name with
getExternalMediaDirs()[0].

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/src/main/java/org/altusmetrum/AltosDroid/AltosDroidPreferencesBackend.java