Not entirely possible. I already offloaded quite a bit of processing on a background thread Handler, but some of the code MUST run on the main (UI) thread (the service inflates a View with a WebView used for HTML pre-rendering).
On Friday, April 27, 2012 6:10:31 PM UTC-4, Kostya Vasilyev wrote: > > Make a Handler and post the processing logic to it as a runnable. > > You will still get the ANR which you can ignore, but the process won't be > killed. > > -- K > > 28 апреля 2012 г. 1:09 пользователь Justin Anderson написал: > >> AFAIK there isn't... But if I'm wrong, I would love for someone to point >> out how to do it as well! >> >> Thanks, >> Justin Anderson >> MagouyaWare Developer >> http://sites.google.com/site/magouyaware >> >> >> >> On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston wrote: >> >>> I'm debugging on a device. >>> >>> When setting a breakpoint in a process that runs a Service or a >>> BroadcastReceiver on a spot in the code that is run on the main (UI) >>> thread, the phone's watch-dog service kills the process, because I'm >>> stepping through the code slowly. >>> >>> Is there a way, when in debug-mode, to stop the watch-dog service from >>> killing the process that i'm debugging? >>> It is very annoying when this happens or any debugging must be done very >>> quickly (no more that 10 seconds total). >>> >>> Thanks! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

