Dave's Brain

Browse - Programming Tips - What can't my app read files?

Date: 2014mar11
Platform: Android

Q.  What can't my app read files?
I used to be able to!

A.  Android 4.1 removed the implied right to read files.
Add:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
to your manifest. More info http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.