Notes on Android Multiple Threads

Service, IntentService, HandlerThread / Thread, AsyncTask.

Which one to use? What should be noticed?

Here is a comparison:
Notice parallel problem on various Android versions for AsyncTask:
Lifecycle of Threads should be considered carefully.
Threads are still running even if main thread has called finish().
Application components running in the process that’s killed are consequently destroyed. (http://developer.android.com/guide/components/processes-and-threads.html)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s