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
I never said anything about a background thread.
Assuming a service, just replace this:
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
. blah blah make some objects, call some methods...
return START_...;
}
With this:
@Override
public int
Aha!
but i think i saw the process being killed on *anything *that runs on the
main UI thread. But i'm not entirely sure. I'll try that .
Thanks!
On Saturday, April 28, 2012 11:05:55 AM UTC-4, Kostya Vasilyev wrote:
I never said anything about a background thread.
Assuming a service, just
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
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
flyingdutc...@gmail.comwrote:
I'm debugging on a device.
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
magouyaw...@gmail.comнаписал:
AFAIK there isn't... But if I'm wrong, I would love for
6 matches
Mail list logo