Skip to content

Commit

Permalink
Finally got toast to display, looks like routine is working. Need to
Browse files Browse the repository at this point in the history
test on live upload server.
  • Loading branch information
hbringo committed Nov 16, 2011
1 parent 6bbb129 commit 19ff7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Enable "overt" recording mode
* add "learn more" option to legal warning
* more options for configuring your own server (port, url, etc)--
* make the program throw an error if the uploading fails

low priority/pie-in-sky
* Translation
Expand Down
3 changes: 2 additions & 1 deletion src/org/ale/openwatch/uService.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public String urlServer(){
uploadPath = owSettings.getString(uploadPath, "/uploadnocaptcha/");
String url = "http://" + getUploadURL() + uploadPath;
//TODO: Why doesn't this toast come up? Is this function even getting called?
new AlertDialog.Builder(this).setTitle("Argh").setMessage("http://" + getUploadURL() + uploadPath).setNegativeButton("Cancel", null).setPositiveButton("OK", null).setNeutralButton("No", null).show();
//Removed below line because it was crashing this routine. Keeping in here for curiosity sake.
//new AlertDialog.Builder(this).setTitle("Argh").setMessage("http://" + getUploadURL() + uploadPath).setNegativeButton("Cancel", null).setPositiveButton("OK", null).setNeutralButton("No", null).show();
Toast.makeText(this, "http://" + getUploadURL() + uploadPath, Toast.LENGTH_LONG).show();
final int NOTIF_ID = 1234;

Expand Down

0 comments on commit 19ff7cb

Please sign in to comment.