What do you mean by an IntentService?

A singleton object running a Thread would be easier to implement and
would probably port out of the box on other java based platforms.
However it would have the following drawbacks:

- Android only treats Activities and Services as components. So if you
are using a singleton object to do the grunt work, your process would
become a candidate to be killed with higher probability in low memory
conditions.

- Notifications require a Context in android. So a singleton object
would not be able to issue notifications.

I would suggest using a Service.



On Jul 17, 5:20 pm, Frank Weiss <fewe...@gmail.com> wrote:
> My suggestion is to look at some sample code, like Romain Guy's
> PhotoStream. Although PhotoStream does a Flickr download instead of an
> upload, the application structure covers services, AsyncTask (albeit
> an early version thereof), notifications, etc.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to