You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build an app that involves uploading a locally stored image to IBM's Watson for image analysis. Use the GalleryHelper to assist with this process. Attempt to run the app. You will find that you run into permissions errors because GalleryHelper is missing a permissions check for READ_EXTERNAL_STORAGE. This should be an easy fix, CameraHelper has a permissions check method in it, and this is quite similar.
The text was updated successfully, but these errors were encountered:
Hey @Skyler-Altol, thanks for filing this issue. I'm a bit busy with some other release stuff at the moment, but I'll try to take a look at this next week. In the meantime, if you think you might have a quick fix for the problem, feel free to make a PR and I'll happily review!
I was able to make a fix for the purposes of my university assignment, but I will not publish said fix here because it is probably one of the most hacky things I've ever written, and should never be seen in a production environment. I too am also busy until next week, but if I get a chance, I'll do a further deep dive into Android permissions and how to appropriately handle asking for permissions from a user.
Scenario:
Build an app that involves uploading a locally stored image to IBM's Watson for image analysis. Use the GalleryHelper to assist with this process. Attempt to run the app. You will find that you run into permissions errors because GalleryHelper is missing a permissions check for READ_EXTERNAL_STORAGE. This should be an easy fix, CameraHelper has a permissions check method in it, and this is quite similar.
The text was updated successfully, but these errors were encountered: