How to stop ActivityManager killing apps that are halted by debugger?

2,231 views
Skip to first unread message

Risk

unread,
Apr 24, 2012, 6:43:18 PM4/24/12
to andro...@googlegroups.com
Hallo,
i get this logcat output when i debug a shared library:
Timeout executing service, Process (pid 5681) has died, Scheduling restart of crashed service in 5000ms

The host app (dalvik part) will be kicked by the OS if i do not continue the process in time (maybe 10 secs). How can i disable this OSbehavior? I don't want the ActivityManager kicking processes at all (due to timeout). This timeout is by design.

AppCoder

unread,
May 3, 2012, 8:04:59 AM5/3/12
to android-ndk
You might look into using

http://developer.android.com/reference/android/app/Service.html#startForeground%28int,%20android.app.Notification%29

The Foreground priority should keep the OOM/Idle task killer off your
back.

Dan Schmitt
Reply all
Reply to author
Forward
0 new messages