Back to project page DragonGoApp.
The source code is released under:
GNU General Public License
If you think the Android project DragonGoApp 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 fr.xtof54.jsgo; //from ww w . ja va2 s. c o m import android.content.Context; import android.widget.Toast; public class WebAppInterface { Context mContext; /** Instantiate the interface and set the context */ WebAppInterface(Context c) { mContext = c; } /** Show a toast from the web page */ // @JavascriptInterface public void sendSgf1() { // Toast.makeText(mContext, "sent SGF1 ", Toast.LENGTH_SHORT).show(); } public void sendSgf2(Object sgf, Object selectedMove) { Toast.makeText(mContext, "sent SGF2 ", Toast.LENGTH_SHORT).show(); } // public void sendSgf2(String sgf, String selectedMove) { // Toast.makeText(mContext, "sent SGF "+selectedMove, Toast.LENGTH_SHORT).show(); // } }