1 JSONTokener tokener = new JSONTokener(builder.toString());
2 JSONArray finalResult = new JSONArray(tokener);
4 for (int i = 0; i < (finalResult.length() -1); i++) {
5 JSONObject objects = finalResult.getJSONObject(i);
6 if ((uriInsert = updatedIndexer(objects)) != null) {
8 downloadImage((String)objects.get("image"), (String) objects.get("id"));
9 Intent updateList = new Intent("de.android.mobiads.MOBIADSLISTRECEIVER");
10 context.sendBroadcast(updateList);
12 } catch (Throwable e1) {
13 context.getContentResolver().delete(uriInsert, null, null);
14 context.deleteFile((String) objects.get("id"));