Fetching Images
In an Android Application - I am sending a Json String like this
{"restarutant":{"name":"Chung Wah","photo":"http:\/\/i.imgur.com\/AnXB0.jpg","address":"93, 2ndc ross, GDP etx.","area":"Vylaikaval","city":"Bangalore","location":["13.015621","77.277531"],"phone":["9986377561","08023467969"],"rating":"4","cuisines":["Chinese","Korean"],"attributes":["smoking","parking","delivery"],"gallery":["http:\/\/i.imgur.com\/9THuR.jpg","http:\/\/i.imgur.com\/05Oon.jpg","http:\/\/i.imgur.com\/fPm96.jpg","http:\/\/i.imgur.com\/sICp4.jpg","http:\/\/i.imgur.com\/JP8mG.jpg"]}}
This is a result of an array below (just to understand how the array is form开发者_JAVA百科ated)
$restaurant = array('restarutant' =>
array('name' => 'Chung Wah',
'photo' => 'http://i.stack.imgur.com/AnXB0.jpg',
'address' => '93, 2ndc ross, GDP etx.',
'area' => 'Vylaikaval',
'city' => 'Bangalore',
'location' => array('13.015621', '77.277531'),
'phone' => array('9986377561', '08023467969'),
'rating' => '4',
'cuisines' => array('Chinese', 'Korean'),
'attributes' => array('smoking', 'parking', 'delivery'),
'gallery' => array('http://i.stack.imgur.com/9THuR.jpg',
'http://i.stack.imgur.com/05Oon.jpg',
'http://i.stack.imgur.com/fPm96.jpg',
'http://i.stack.imgur.com/sICp4.jpg',
'http://i.stack.imgur.com/JP8mG.jpg')
));
Now when the Activity Loads. Which is the best way to download these Images from the Server and Display ?
Whats the procedure we need to follow ?
Lazy load of images in ListView - the best start point for you to download images asynch into views.
精彩评论