Skip to content

Commit 76cdd6a

Browse files
Brandon ShroyerBrandon Shroyer
Brandon Shroyer
authored and
Brandon Shroyer
committed
Merge branch 'master' of https://github.com/zhongyu05/tracking
2 parents 8b5ddee + d10cebd commit 76cdd6a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

tld-main/res/raw/parameters.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ ncc_thesame=0.45
44
valid=0.5
55
num_ferns=10
66
num_features_per_fern=14
7-
pos_thr_fern=0.15
8-
pos_thr_nn=0.30
7+
pos_thr_fern=0.13
8+
pos_thr_nn=0.25
99
pos_thr_nn_valid=0.40
1010

1111
num_closest_init=10

tld-main/src/com/trandi/opentld/MainActivity.java

+19
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,25 @@ public void run() {
451451
}
452452
}
453453
};
454+
455+
@Override
456+
public void onBackPressed()
457+
{
458+
// code here to show dialog
459+
super.onBackPressed(); // optional depending on your needs
460+
mHttpclient.get(this, "http://roc.cs.rochester.edu/ccvideo/RegionSpeak/php/setInactive.php?session="+sessionName, new AsyncHttpResponseHandler() {
461+
@Override
462+
public void onSuccess(String response) {
463+
finish();
464+
}
465+
@Override
466+
public void onFailure(int statusCode, org.apache.http.Header[] headers, byte[] responseBody, java.lang.Throwable error){
467+
Log.v("Main", "fail"+statusCode+responseBody+","+error.toString());
468+
Toast.makeText(getApplicationContext(), "Check internet connection.", Toast.LENGTH_SHORT).show();
469+
//sendingDialog.dismiss();
470+
}
471+
});
472+
}
454473

455474
protected void onUserLeaveHint () {
456475

0 commit comments

Comments
 (0)