And layout is
Response code is
try{
JSONArray a = new JSONArray(_response);
for (int i = 0; i < a.length(); i++) {
JSONObject o1 = a.getJSONObject(i);
thumb = o1.getString("thumb");
JSONArray a2 = o1.getJSONArray("url");
for(int j=0;j<a2.length();j++) {
JSONObject o2 = a.getJSONObject(j);
link = o2.getString("url");
title = o1.getJSONObject("meta").getString("title");
type = o2.getString("type");
}
map = new HashMap<>();
map.put("thumb", thumb);
map.put("link", link);
map.put("title", title);
map.put("type", type);
lmap.add(map);
}
recyclerview1.setAdapter(new Recyclerview1Adapter(lmap));
}
}catch(Exception e){
}
Tutorial youtube Video
0 Comments