--- /dev/null
+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"));
+ Intent updateList = new Intent("de.android.mobiads.MOBIADSLISTRECEIVER");
+ context.sendBroadcast(updateList);
+ updateNotification();
+ } catch (Throwable e1) {
+ context.getContentResolver().delete(uriInsert, null, null);
+ context.deleteFile((String) objects.get("id"));
+ }
+ }
+}