Android - Avoiding an activity to destroy, just stopping or pausing it when pushing the back button

Posted by Erwan on Stack Overflow See other posts from Stack Overflow or by Erwan
Published on 2010-03-19T13:08:15Z Indexed on 2010/03/19 13:11 UTC
Read the original article Hit count: 353

Filed under:

Hi,

I would like to pausing or putting the application on background when pressing the back button, I don't want the application to go through the destroy state. Things are when I override onKeyDown and when I force to pause or stop the application by using onPause, I have some issuees with the wakelock and application crash, but when I press home button I go through onPause method and I have no exception, it's weird!!

© Stack Overflow or respective owner

Related posts about android