permission not granted (in your case might be storage permission code example
Example 1: storage permission android
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Example 2: read storage permission android
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>