IntentService low priority
If you use IntentService
and find that usually clunks the UI, i found out that creating your own IntentService
and Process.THREAD_PRIORITY_BACKGROUND
into the ServiceHandler
gives a nice boost in UI performance.
Other (less prettier) solution you can call Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND)
in onHandleIntent()
method.
Written by Gonçalo Ferreira
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Related Tags
#android
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#