How to parse Sub JSONArray and display image?

前端 未结 3 984
暗喜
暗喜 2020-12-12 06:09

I am a php programmer and I am trying to learn JAVA. I have problem trying to parse a json file. It\'s been for 3 days..having a headache at this. I am create an android a

3条回答
  •  我在风中等你
    2020-12-12 06:53

    use this code:

      JSONObject json = JSONfunctions.getJSONfromURL("http://metalgearrisingguide.com/samplejson.json");
    
    
                try{
    
    
                    JSONArray products = json.getJSONArray("product");
    
                   for(int i=0;i

提交回复
热议问题