code: private void buildReport(Context context) {
          try {
              buildBaseReport();
              buildApplicationData(context);
              buildDeviceData(context);
              buildLog();
              report.put("application", app);
              report.put("device", device);
              report.put("log", logs);
          } catch (JSONException e) {
              e.printStackTrace();
          }
      }
docs: Creates the report as a JSON Object.
  @param context
  @return the json object containing the report.