is it possible to make a html button that when I click, it will go to my android activity class. Just like using Intent when I view Activity to another Activity
anyone have a thoughts?
my JsInteface class change into this
public class JavaScriptInterface {
Context mContext;
/** Instantiate the interface and set the context */
JavaScriptInterface(Context c) {
mContext = c;
}
/** Show a toast from the web page */
public void showToast(String toast) {
Intent mainIntent = new Intent(mContext, echos.class);
mContext.startActivity(mainIntent);
}
}