I think the best practice depends on the requirements for the app and there
isn't a globally acceptable answer to that.  Obviously you don't want to
have an overly "chatty" app, but depending on how much data you need and
how often some of that data is used, you may not want to get it all up
front.  You want to find a good balance between having too many network
calls and UI response time.  If it takes a long time to wait for the data
to download then the experience is not going to be a good one for the user.

Also, this is not really an Android question... just saying. :-)

On Tue, Mar 1, 2016 at 11:11 PM sardar khan <sardar.khan...@gmail.com>
wrote:

> i think good practice is to load all data first time and save it.
>
> On Tue, Mar 1, 2016 at 8:34 PM, Marcel Molenaar <i...@mediaquest.nl>
> 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 android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> 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/c384f425-f8d3-485a-9b6a-03cac353cf7b%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-developers/c384f425-f8d3-485a-9b6a-03cac353cf7b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> 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/CABHzXAR4ryw_8toBdNUOLVJ4nXmi1VZFdNMu%3DNweyrNQk7ZJ7w%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CABHzXAR4ryw_8toBdNUOLVJ4nXmi1VZFdNMu%3DNweyrNQk7ZJ7w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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/CAOq06s-HwuQ0QMX4gaMs0KsFa1TOTO7gOb49c%2BDdvxYdHycV%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to