Wednesday, April 3, 2013

Re: [android-developers] Re: reusing AsyncTaskLoader with always fresh data

Am 03.04.13 15:37, schrieb Streets Of Boston:
> The call to getLoaderManager().initLoader(0, args, this); is enough
> to have your Loader run at least the first time it is created. Do
> *not *call 'startLoading()'.

yeah... reading helps :-)

>>> startLoading()
>>> This function will normally be called for you automatically by
>>> LoaderManager when the associated fragment/activity is being
>>> started.

> If you want to refresh your Loader's data call
> getLoaderManager().*restart*Loader(0, args, this);

that works too :-)


Thanks a lo,
Ralph

--
--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate