Force Android to stop asking me if I want to terminate my own app I've got a simple logger app that I wrote for my Android phone.  The problem is, periodically (seems like it happens every few days) when I turn on my phone I am confronted with a modal dialog box telling me that my app has consume X amount of CPU already, and do I want to kill it?  The thing is, this generally happens some time AFTER I have stopped logging and it is just sitting there doing nothing, and moreover, this is when it is on AC power, so I don't see how battery consumption is even a concern.  In any case, it is getting annoying having to constantly tell it to not kill the app.  It is more concerning to think that this might still happen if I ever enable "stealth" mode on my app to track it if it is stolen, as this would alert a perpetrator and give them a chance to disable my app.

Is there some way to disable this behavior?  If so, how?
Try running your logic in another thread or in async task's doInBackground