android - show text and image form json in image url? -
this question has answer here:
- parse json array android 3 answers
"status": true, "data": { "teachers_per_page": 15, "teachers_show_from": 0, "teachers_found": 142, "teachers": { "0": { "id": "249", "name": "md. shahjahan kabir", "position": "assistant professor", "department": "computer science , engineering", "campus": "green road", "mobile": "01719005174", "email": "kabir.cse@diu-bd.net", "photo": "http://www.diu.ac/ephoto/11384247470513269340.jpg", "offday": "monday" }, "1": { "id": "247", "name": "bushra ferdousi", "position": "assistant professor", "department": "business administration", "campus": "banani" "mobile": "01911519737", "email": "bushra.bba@diu-bd.net", "photo": "http://www.diu.ac/ephoto/11384247160483915267.jpg", "offday": "monday"
hey guys json data.how can show text , image multi image url
"teachers" should better jsonarray. way not need numbering objects inside.
now answer you. suppose root of json jsonobject.
jsonobject root = ...// jsonobject data = root.getjsonobject("data"); jsonobject teachers = data.getjsonobject("teachers"); jsonobject teacher = teachers. getjsonobject("0");
Comments
Post a Comment