It is known that when we deny permissions at runtime in Android 6.0 and resume the app from the recent menu, the app process
You should be handling Activity
(re)creation using the Bundle
provided by onCreate
, saved by onSaveInstanceState
, more information here.
Pass in the Bundle
all you need in order to recover from a previous state and restore your UI seamlessly. Your Activity
can be recreated by many reasons, cancellation of permissions is just one of them, screen rotation is another, so as long as you can survive one, you can survive all of them.