Permalink
Browse files

adding request back to dictionary

  • Loading branch information...
1 parent 5abbd46 commit fd1aefacaac99c114251258e65c691e80621ed44 Jon Vlachoyiannis committed Mar 17, 2011
Binary file not shown.
@@ -12,7 +12,7 @@
public class MainActivity extends Activity {
private static final int DIALOG_SUBMITTING_EXCEPTIONS = 1;
- private static final String SFALMA_KEY = "e402bf37b34ec5d42c955f1e85004d12";
+ private static final String SFALMA_KEY = "150d0057a3e3defd74e02854e29fa760";
private Dialog mExceptionSubmitDialog;
@@ -38,7 +38,7 @@
public static String FILES_PATH = null;
public static String APP_VERSION = "unknown";
public static String APP_PACKAGE = "unknown";
- public static String URL = "http://10.39.255.101:8080/test/android";
+ public static String URL = "http://10.39.255.101:8080/api/errors";
//public static String URL = "http://192.168.0.55:8080/api/errors";
public static String TAG = "SfalmaHandler";
public static String ANDROID_VERSION = null;
@@ -38,7 +38,7 @@ public class G {
public static String FILES_PATH = null;
public static String APP_VERSION = "unknown";
public static String APP_PACKAGE = "unknown";
- public static String URL = "http://10.39.255.101:8080/test/android";
+ public static String URL = "http://10.39.255.101:8080/api/errors";
//public static String URL = "http://192.168.0.55:8080/api/errors";
public static String TAG = "SfalmaHandler";
public static String ANDROID_VERSION = null;
@@ -45,10 +45,14 @@
public static String createJSON(String app_package, String version, String phoneModel, String android_version, String stackTrace, String wifi_status, String mob_net_status, String gps_status) throws Exception {
JSONObject json = new JSONObject();
+ JSONObject request_json = new JSONObject();
JSONObject exception_json = new JSONObject();
JSONObject application_json = new JSONObject();
JSONObject client_json = new JSONObject();
+ request_json.put("remote_ip", " ");
+ json.put("request", request_json);
+
// stackTrace contains many info we need to extract
BufferedReader reader = new BufferedReader(new StringReader(stackTrace));

0 comments on commit fd1aefa

Please sign in to comment.