How I can avoid crashing my app on Android M like Instagram with current flow
open the Instagram app
goto app settings page, switch camera permission off
return to the app
as you see it restarts , but my app crashes without any exception
so I want make the same with my app
any ideas?