Monday, March 1, 2010

Re: [android-developers] File upload in background: thread/service/AIDL...?

Anna PS wrote:
> should it be a LocalService or a
> RemoteService, as per the API examples?

A local service should be fine.

> And do I need to call a new
> thread once I start the service, or do all services by definition run
> in a different thread?

Services by definition run on the main application thread, so use an
AsyncTask or something to get your upload logic off that thread.

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

Android 2.0 Programming Books: http://commonsware.com/books

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate