views:

11

answers:

0

I have an activity, on which when I press the Keyguard lock button, the onDestroy() function is called. At then when I disable the keyguard lock, that activity is shown no more as I get a RuntimeException in Illegal View State. How can I prevent from onDestroy() to be called? Please help.