Thursday, February 7, 2013

Re: [android-developers] Re: asynctask vs. FragmentRetainInstance.java in API demo

Thank you. It is very useful.

2013/2/6 Streets Of Boston <flyingdutchie@gmail.com>
Instead of Threads or AsyncTasks that do the background work getting the data from the server, use Loader (AsyncLoader).
You can use the LoaderManager to initially load them and also to restart them. Restarting them would allow you to implement your 'refresh' functionality.
 


--
--
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
---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment