There are differences

- Loader managed by fragment/activity, if you feel trouble managing task 
between configuration changes, other interruption (phone ring) or any 
other, use Loader and let Fragment/activity will mange 
pause/restart/reattach .

Where ever possible try to use Loader

 

- AsyncTask- Simply queuing of thread, Android internally manage execution 
based on available resource, A global executor Service which does not block 
current UI thread and keep reference of UI thread to display data when 
execution finish.

In most of situation it is easy to implement and avoid UI blocking.

 

- Runnable - non control threads, good to use when you know what you are 
doing for ex: a socket listing on a port

 
 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to