Android Keep Activity from Dieing

Posted by GuyNoir on Stack Overflow See other posts from Stack Overflow or by GuyNoir
Published on 2010-06-06T14:47:01Z Indexed on 2010/06/06 14:52 UTC
Read the original article Hit count: 365

Filed under:
|
|
|
|

The main Activity I use in my Android application uses a fair amount of memory, meaning that on a less powerful phone, it is susceptible to being killed off when not at the front. Normally this is fine, but it also happens when I am still inside my application, but have a different activity at the top of the stack (such as a preference activity).

Obviously it's a problem if my application is killed while the user is still running it. Is there any way to disable the OS's ability to kill off the application for low memory problems?

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about android