Yeah, I guess I can do that, but if I do I need to write custom code for
retaining the arguments across instance change, which I would have liked
the framework to be able to do for me, as described here:
https://groups.google.com/forum/#!topic/android-developers/bCc5tjOHQ1o


On Wed, Jun 4, 2014 at 8:47 AM, MathieuB <[email protected]> wrote:

> Like Doug said. That's sort of how i'm doing it and had no problem.
>
> So #2 kind of.
>
> Here's my onLoadFinished :
>
> @Override
> public void onLoadFinished(Loader<ArrayList<Tour>> loader, ArrayList<Tour>
> data) {
>
> CatalogTabFeatured featuredFragment = (CatalogTabFeatured)
> getSupportFragmentManager().findFragmentByTag(makeFragmentName(mViewPager.getId(),
> 0));
>
> featuredFragment.setData(data);
>
>
> CatalogTabRecents recentsFragment = (CatalogTabRecents)
> getSupportFragmentManager().findFragmentByTag(makeFragmentName(mViewPager.getId(),
> 1));
>
> recentsFragment.setData(data);
>
>  CatalogTabRated ratedFragment = (CatalogTabRated)
> getSupportFragmentManager().findFragmentByTag(makeFragmentName(mViewPager.getId(),
> 2));
>
> ratedFragment.setData(data);
>
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/rFQDqknx8VM/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to