android - Can't load images from external storage in M preview -
i have app stores it's images on external storage. have been working great until tried new m preview.
i use picasso (i tried ion) load images , images "file:///mnt/sdcard/appname/image1.jpg" uri.
i don't errors @ all, i'm guessing m has changed permissions read external storage. have tried googling come empty.
writing images external storage works normal way.
although siris_cac answer explained wasn't caused problem. turns out can't use "file:///mnt/sdcard/appname/image1.jpg" load file external storage in m.
i guess might have to http://www.androidpolice.com/2015/05/28/android-m-feature-spotlight-external-storage-can-be-adopted-as-true-internal-storage-or-accessed-normally-with-no-additional-apps/
i guess wrong begining not using enviroment.getexternalstoragedirectory() when loading images, when saving them.
so load images use:
"file:///" + environment.getexternalstoragedirectory().getpath() + "/appname/image1.jpg";
Comments
Post a Comment