I’ve got a website that provide a path of image in json. and I want to get this path and display an image in my ImageView.
Hint: targetSdkVersion=”15″
Example:
{
"count": "28",
"data": [
{
"id": "84",
"thumb": "http://mmmmm.cccc.com/data/card/thum/a1f694f5ba0df9147c02b0c0c8cb83c2.jpg",
"category": "Purchase",
"title": "test",
"locationname": "test",
"latitude": "0",
"longitude": "0"
}
]
}
In my Activity:
ImageView iv = (ImageView) findViewById(R.id.imageView1);
iv.setImageResource(R.drawable.photo); // this show image that has in project and how about display image that using JSON path above
Parse your json and take the URL and then put them us URL in the method or here