SetImageuri Crash

URIs are temporary addresses to a image/file. 
They are similar to a link you click to open a website i.e.url. 
Once a session ends the URI to access a file/image expires 
and using it to access a file again crashes the app

Solution

once you get the uri store the image in the app's internal storage using bitmap 
and then generate a new uri for the image stored in the inernal storage 
with Uri.fromFile(file);. Now use this new generated uri in any activity in the app. 
Fool lin