撷取图片
问题描述:
在一个Android应用程序 - 我送一个JSON字符串这样撷取图片
{"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"]}}
这是低于(只是为了了解数组是如何格式化)数组的结果
$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')
));
现在当活动加载时。从服务器和显示器下载这些图像的最佳方法是什么?
我们需要遵循什么程序?