I know how to get a photo from gallery in android
Intent gallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(gallery, PHOTO_REQUEST_CODE);
But how would I specifically select a thumbnail?
REASON FOR BOUNTY:
I have already tried both solutions at Get thumbnail Uri/path of the image stored in sd card + android . They don't work for me. I don't know how to get selectedImageUri
, which is of type long
, from data
in
onActivityResult(int requestCode, int resultCode, Intent data)