0

How I can avoid crashing my app on Android M like Instagram with current flow

  1. open the Instagram app

  2. goto app settings page, switch camera permission off

  3. 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?

  • use try catch in your code. – Shaifali Rajput Aug 24 '17 at 10:24
  • Similar question? https://stackoverflow.com/questions/37437339/how-to-restart-the-app-in-android-marshmallow-when-permission-changed-manually – Raghavendra Aug 24 '17 at 10:28
  • Possible duplicate of [How to programmatically open the Permission Screen for a specific app on Android Marshmallow?](https://stackoverflow.com/questions/32822101/how-to-programmatically-open-the-permission-screen-for-a-specific-app-on-android) – Alessandro Da Rugna Aug 24 '17 at 10:54
  • no, it's another problem ,it comes from here https://stackoverflow.com/questions/45833688/android-app-crashes-after-permission-disabling-on-api-23 – Grigor_8263599 Aug 24 '17 at 12:41

0 Answers0