smith324 smith324 - 1 year ago 137
Android Question

How to set Priority of IntentService in Android

I was wondering if it is possible to set the priority of an

like you can with a
. So far I have not found anything.

Answer Source

The HandlerThread that IntentService uses is not exposed to the SDK. It is set to Process.THREAD_PRIORITY_DEFAULT as a priority.

Note that IntentService is 143 lines of code, including whitespace and comments, so you might consider just cloning it to have one with the priority you seek.