extended JSInterface to finish app via js (see #312)

This commit is contained in:
Philipp Schaefer
2013-05-24 17:24:02 +02:00
parent e7a296b2b3
commit 045279a265
2 changed files with 7 additions and 17 deletions

View File

@ -64,6 +64,13 @@ public class IITC_JSInterface {
.show();
}
// exit IITC Mobile
@JavascriptInterface
public void exitIITC() {
Log.d("iitcm","no back stack...finishing iitc");
((IITC_Mobile) context).finish();
}
// get layers and list them in a dialog
@JavascriptInterface
public void setLayers(String base_layer, String overlay_layer) {