1)Create an app which ask for camera permission. 2)User grant the permission 3)Now minimize the app 4)Go to Setting -> Apps --> Your Application-->revoke the camera permission 5)Now activity getting created ,how to stop recreating .
I found this one but how i can achieve this Application is getting killed after enable/disable permissions from settings on Android M nexus 6