On Thu, May 2, 2013 at 12:25 PM, MathieuB <[email protected]> wrote:

> So for the moment, I got a Loader in each fragment that gets the data from
> a webservice. Because the data is the same for each fragment, I'd like to
> find a way to only get the data once and share it across all three
> fragments.
>
> Can you guys give me some cues?
>

Find some object - possibly the parent Activity or a singleton - that can
hold the data, then check if that thing already has the data from each
fragment before trying to download it.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
-- 
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/groups/opt_out.


Reply via email to