Android M User Permission Error - READ and WRITE
I just started off with android M and I am unable to access the external storage. I get the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=15355, uid=10053 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() I am adding user-permission in manifest like <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> and my build file is with following settings : compileSdkVersion 23 buildToolsVersion "22.0.1" minSdkVersion 16