Have you tried setting the intent flag to FLAG_GRANT_READ_URI_PERMISSION and/or…
Lorenzo Quiroli

Yes, I did


but still got exception after camera took a shot and have selected it to return back to my app.

Here is good explanation that I googled and it worked fine for me.

And have a look the update at the end of the article (UPDATE 2016–09–01), I think this is an explanation of the problem that was mentioned by Egor Andreevich.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.