Christine wrote:
> In its own thread. The activity just kicks the Service using AIDL,
> basically just handing it a filename, then continues with handling the
> UI. The AIDL call posts a task in the service which does all the
> uploading and stuff.

By "posts a task", do you mean executes an AsyncTask, or something else?

> I think - but I need to do more testing - that
> unbinding from the service right after the aidl call solves the
> problem, but then I lose the callbacks.

That seems strange.

>> You can give a background thread a different priority,
> 
> Yeah, well, the whole thing of using a service is that it's in a
> separate thread and that it doesn't stop when the activity pauses or
> stops or gets destroyed.

Yup!

> But maybe I should try forking a separate
> thread from the service with a lower priority.

If you are using AsyncTask, those threads are already created at a lower
priority.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

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

Reply via email to