Hi,

I'd suggest you conduct some tests to try to work this out for yourself by 
writing some test code to measure the elapsed time (in milliseconds eg 
using System.currentTimeMillis() ) and the counting the number of total 
bytes downloaded when you (a) include the News Description & (b) when you 
exclude the News Description.

You would probably need to run the tests multiple times to get a good 
representation of the differences given that the number of bytes for New 
Description will likely vary for each News item.

I'd guess that including the News Description probably won't make too much 
of a difference if these are only a few sentences long and that including 
or excluding the News Picture would likely make more of a significant 
difference.

I find that measuring by testing yourself is usually a good way to learn 
things instead of just asking someone else...

Regards 

On Wednesday, March 16, 2016 at 4:44:32 PM UTC+11, Mustafa Mohammadi wrote:
>
> Hello every one
> I am new to android and I'm developing a *News application* for just 
> *improving 
> myself*. The application loads news from a WordPress website using 
> Restful. Here is the simple news model:
>
>    1. Title
>    2. News Description
>    3. Category
>    4. Date
>    5. News Picture
>
> For every new News, the application sends a request using *Restful* for 
> new one(s) to sync data. Here is a case scenario that: the reader do not 
> read all news, I mean from 20 News, just open 2 or 3 of them. To prevent 
> data bundle consumption, I thought that just request for needed info like 
> (*Title, 
> Category, Data and Picture*) but, just *News Description* is remained 
> (Not requested). While reader opens the news, then application sends 
> request for opened *News Description.*
> Here are two questions:
>
>    1. Do you think if it is a correct approach that request for *all news 
>    attributes* apart from News Description? Doesn't it reduce the 
>    application performance or whatever?
>    2. How much internet is spent for just News Description?
>
> Please help me to improve my skill.
> Thanks
>

-- 
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/6c3baac6-10e3-4241-9cb0-65f2eb98354e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to