Beispiel #1
0
 private void init() {
   try {
     jsonObject = new JSONObject(this.serverResponse.responseData);
     checkErrors();
     if (!serverResponse.isResponseOk()) {
       jsonObject = null;
     }
   } catch (Exception e) {
     if (SettingsManager.DEBUG()) Log.e(LOG_TAG, "JSONUtility " + e.getMessage());
     if (SettingsManager.DEBUG()) Log.e(LOG_TAG, "JSONUtility :: Failed to parse json");
     Crashlytics.setString("response message", serverResponse.responseMessage);
     Crashlytics.setString("response data", serverResponse.responseData);
     Crashlytics.setInt("response code", serverResponse.code);
     Crashlytics.setString("request url", serverResponse.request);
     Crashlytics.logException(e);
   }
 }
 public static void setInt(String key, int value) {
   Crashlytics.setInt(key, value);
 }
 @Override
 public void call(JSONArray args) throws JSONException {
   Crashlytics.setInt(args.getString(0), args.getInt(1));
 }