Error 908: READ_EXTERNAL_STORAGE has been disabled. Please enable

353 views
Skip to first unread message

BrandonRS

unread,
Mar 28, 2019, 3:31:41 PM3/28/19
to MIT App Inventor Forum
Hey there,

My application is able to take a picture and store it. When I run the app through the Companion app it works fine however when I packaged the app into the APK it doesn't work as expected

The app needs two permissions, one for the camera and one for the storage (I am using TinyDB)
 
When I click the button to open the camera it asks "Do you want Appname to be aloud to access the camera" which I say yes too. However when I try to save the photo it gives me the error "908: READ_EXTERNAL_STORAGE has been disabled. Please enable". Which leads me to my question

Why wont it prompt me to ask the same thing as the camera? (Do you want Appname to be aloud to access storage")

I know you can go into the app permissions on the phone and manually turn it on from there, but I want the behavior/process to be similar to the camera's process....

Any thoughts/help would be greatly appreciated.

Thanks,

BrandonRS

unread,
Mar 28, 2019, 3:46:10 PM3/28/19
to MIT App Inventor Forum

Following what they did here opens a dialog box that forces the app to ask for permission :D

all works as it should now

BodyMindPower

unread,
Mar 29, 2019, 4:51:55 AM3/29/19
to MIT App Inventor Forum
It depends on how you save the image (component / extension). Show us the relevant blocks.

Anke
Reply all
Reply to author
Forward
0 new messages