JSONTokener tokener = new JSONTokener(builder.toString());
JSONArray finalResult = new JSONArray(tokener);
Uri uriInsert = null;
-
for (int i = 0; i < (finalResult.length() -1); i++) {
JSONObject objects = finalResult.getJSONObject(i);
if ((uriInsert = updatedIndexer(objects)) != null) {
try {
- downloadAds((String)objects.get("image"), (String) objects.get("id"));
+ downloadImage((String)objects.get("image"), (String) objects.get("id"));
Intent updateList = new Intent("de.android.mobiads.MOBIADSLISTRECEIVER");
context.sendBroadcast(updateList);
updateNotification();