I am making a widget which has an ImageView to display an image. I store some images in internal storage with mode as MODE_WORLD_READABLE. Now I need to send a Uri of this image so I can load the ImageView using setImageUri. How do I create such Uri ?
I believe this is required since a widget is handled by the home screen process.
Also, setImageBitmap() is not an option for me since it leads to FAILED BINDER TRANSACTION in many cases.
Thanks for your help!
Create your uri using Uri.fromFile(file) api .