Hi.

I updated my app to use the "new" startForeground() method of Service. Now
beta testers are complaining about the foreground app going slow. Is that a
coincidence or does startForeground() mess with the thread's prio or does
anything else but what is written below?

Just as an additional information the background activity does some syncing,
reports the progress to the notification using remote views and as it is not
latency dependent I use (and did that before already)
this: Process.setThreadPriority(Process.THREAD_PRIORITY_LOWEST);

Should I use another Priority? And if it makes any difference, how does that
play with Android 1.5 devices?

Cheers,
Mariano

http://developer.android.com/reference/android/app/Service.html#startForeground(int,
android.app.Notification)

Make this service run in the foreground, supplying the ongoing notification
to be shown to the user while in this state. By default services are
background, meaning that if the system needs to kill them to reclaim more
memory (such as to display a large page in a web browser), they can be
killed without too much harm. You can set this flag if killing your service
would be disruptive to the user, such as if your service is performing
background music playback, so the user would notice if their music stopped
playing.

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to