Neither.
Implement Syncing properly instead.

I just inherited code where the developer didn't know what he/she was doing 
and the app is littered with async tasks doing ever calls for each activity.
Worst code I've had to deal with in a long time.

Here, watch this video:
https://youtu.be/BlkJzgjzL0c

- Brill Pappin

On Tuesday, 1 March 2016 10:34:08 UTC-5, Marcel Molenaar wrote:
>
> Hello,
>
> What is good practice?
>
> I consider to do one call to my serverside json file at the first activity 
> of my app and get all my data at once.
>
> My college prefers to split it up into separate json calls in each 
> activity so only data for that specific activity will be requested.
>
> Which approach is the best?
>
> Regards,
>
> Marcel Molenaar
>

-- 
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ef8a460b-4006-4276-8883-da15a6d08a7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to