I have only written one large android application. In my experience volley 
was outstanding. http://developer.android.com/training/volley/index.html. I 
grabbed that from teh first web search. It lists some of the benefits, it 
is extremely advanced. You can find a ton of examples on github. I am not 
familiar with the library you are talking about, so it is hard for me to 
compare it. Generally volley and android in general does a great job of 
forcing you to do things in the background so you aren't blocking the ui. 
There are a number of factors to take in consideration too. The protocal 
ideally is pretty light weight like json since you are pulling from a phone 
with a spotty connection, and you want light weight deserialization. One of 
the elements of my project was a giphy selection control. very media 
intensive. Being smart about how you load data (not loading too much) and 
getting a few in so the user sees something while the rest is loading 
helps. Also there are a lot of libraries that work with the network that 
can help such as media libraries if you are pulling rich media and you need 
some compression and caching.  Volley has caching and queuing mechanisms 
which probably the other library you are using don't have. Look at git hub 
for Volley examples there are tons and tons. I bet it would be pretty easy 
to bench mark wtih what you are doing and to a quick comparsion.

On Saturday, February 27, 2016 at 10:38:09 AM UTC-8, Adrian Ivasku wrote:
>
> Hello,
>
> I am trying to make a news app that would read news from a particular web 
> page... I have done this with Jsoup library but it is very slow... on a 
> fast phone with good internet connection it takes for 3-6 seconds to load a 
> page... and I have optimized the code that gets the Document object from a 
> page...
>
> I have read today about volley library, which is apparently ultra fast and 
> ideal for this kind of tasks... I have been reading and looking at volley 
> examples... but I fail to see the point... Could anyone explain some more, 
> with example situation why should I use volley?
>
> Can anyone give me advice in which direction should I go to make this news 
> app, should I use volley ? or even if possible volley with jsoup.... in 
> general. What libraries should I use? 
>
>
>

-- 
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/2a8ebd8c-5e7d-4174-aa65-365c59186dc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to