How to pass a URI to an intent?

Issue I’m trying to pass a URI-Object to my Intent in order to use that URI in another activity. How do I pass a URI? private Uri imageUri; …. Intent intent = new Intent(this, GoogleActivity.class); intent.putExtra("imageUri", imageUri); startActivity(intent); this.finish(); How

Continue reading

Share Image from Xiaomi gallery app has problem

Issue I want to share images from MIUI gallery app to my app but received intent has data=null and uri=content://com.miui.gallery.open/raw/%2Fstorage%2Femulated%2F0%2FAndroid%2Fdata%2Fcom.miui.gallery%2Fcache%2FSecurityShare%2F1657350098978.jpg Then i use Cursor to get file path and path is: /storage/emulated/0/Android/data/com.miui.gallery/cache/SecurityShare/1657350098978.jpg As you see, it shares from its data

Continue reading