Android - image picker not working on Kindle Fire?

I have the following code to display imagepicker. After the user selects the onActivityResult image, it is called to return data to me for the selected image.

However, in Kindle, I get resultCode 0, and the data is null. Has anyone else noticed this problem before? This problem only occurs when a fire is fired.

startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), SELECT_PICTURE); 
+6
source share
2 answers

I ran into the same problem. Until the recent Kindle Fire update that happened a few days ago for me, collecting images from the gallery worked great for me. Therefore, the latest update for the Kindle Fire was to introduce this error.

+1
source

You can receive data from such calls in two ways: either in the actual intent data, or in Intent.EXTRA_STREAM. If you return to EXTRA_STREAM, it will be the media content content: // URL that you would use to view the cursor.

0
source

Source: https://habr.com/ru/post/912088/


All Articles