Dynamic ListView using Volley and NetworkImageView
Posted / Публикувана 2013-05-30 in category / в категория: Android
|
Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645
Just added new example to the Android Volley Examples project which shows how to use Volley to populate dynamically ListView including loading of images using NetworkImageView. It also uses a simple read-ahead technique in order to load next page of data when the user reaches close to the end of the current page in order to minimize the wait.
|
May 31st, 2013 at 08:38:58
Why you use StringRequest in this example?
May 31st, 2013 at 08:54:07
Probably you mean why not use JsonObjectRequest?
I needed just a small part of the returned JSON string and needed the raw string just to be able more easily to see what fields I will need.
In "real" application it will be more straightforward to use JsonObjectRequest of course….
May 31st, 2013 at 01:38:27
One more question about StringRequest.
A small piece of code:
return new Response.Listener(){
@Override
public void onResponse(String response) {
Log.d("Response.Listener", response);
}
I thought it would be one String, which I can then parse.
But in LogCat I see a few calls Log.d. And as a result, I can not make parsing …. Any ideas? Thank you.
May 31st, 2013 at 01:42:08
I am afraid I am not understanding exactly what you mean? Did you execute just one request? Or you use this listener for several requests?