Back to project page Gamework.
The source code is released under:
Apache License
If you think the Android project Gamework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cz.robyer.gamework.app.service; /* w w w . jav a2s. c o m*/ import android.app.Activity; import android.webkit.JavascriptInterface; import android.widget.Toast; /** * Helper class for connect javascript in webview with java methods. * @author Robert P?sel */ public class JavaScriptHandler { Activity parent; public JavaScriptHandler(Activity activity) { parent = activity; } @JavascriptInterface public void showToast(String text) { Toast.makeText(parent, text, Toast.LENGTH_LONG).show(); } }