Skip to content

Commit

Permalink
adding request back to dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Vlachoyiannis committed Mar 17, 2011
1 parent 5abbd46 commit fd1aefa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Binary file modified example/libs/sfalma-trace.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion example/src/com/sfalma/trace/example/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/com/sfalma/trace/G.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/com/sfalma/trace/G.template
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/com/sfalma/trace/Sfalma.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ public class Sfalma {
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));

Expand Down

0 comments on commit fd1aefa

Please sign in to comment.