i need permission read and write for my plugin, i try a lot of things.
In manifest
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
but not working after v23
according to others posts, so i try with requestPermission
but my app crash and in real use case i don't have any interface.
I'm using RICOH THETA Plug-in SDK
I'm trying to use BitmapFactory
and got this error
E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/DCIM/100RICOH/R0010156.JPG (Permission denied)
If someone has any idea how to do it. Thanks.
Don't worry. THETA Plug-in store grants all permission automatically on instal time. Users do not need to grant permissions manually in actual use case. You need to grant permissions manually only for development time.
The official document describes that