I would like to use permission for android 6 in my app but i saw a strange event. Perhaps you can help me about that.
If you start your app with "Dangerous" permissions, these permissions appears in the "App permissions" of your android device. PERFECT!
BUT if you keep your app in background, go to the "App permissions" menu, disable (you can enable and then disable it) a permission and go back to your app, android never go to onStart (Fragment or activity) ?! And never go there again.
If you don't touch to the permission or if you enable a permission => it go to onStart and others.
That's problematic, for exemple, if your app use listeners, you can't restart it and you can have a crash...
Do you know the method where Android go when you disable a permission ?
I tried
onCreate
onStart
onResume
onRestart
onRestoreInstanceState
onActionModeStarted
onRestoreInstanceState
onPostResume
onContentChanged
... but no way... :/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…