mProfile = profile;
}
private boolean sendOK() throws IOException {
+// if (BuildConfig.DEBUG) {
+// try {
+// Thread.sleep(1500);
+// if (Math.random() > 0.3)
+// throw new RuntimeException("Simulated test exception");
+// }
+// catch (InterruptedException ex) {
+// Logger.debug("network", ex.toString());
+// }
+//
+// return true;
+// }
+
HttpURLConnection http = NetworkUtil.prepareConnection(mProfile, "add");
http.setRequestMethod("PUT");
http.setRequestProperty("Content-Type", "application/json");