webView中js調用android方法一調用程序就退出是怎麼回事 webView.addJavascriptInterface(new Object(){ public void showToast(String name){ Toast.makeText(SujieEasyActivity.this, name+"sdsdfsdfsf", Toast.LENGTH_LONG).show(); } public void setVisableFlase(){ Toast.makeText(SujieEasyActivity.this, "onfocus", Toast.LENGTH_SHORT).show(); if(menus!=null){ menus.setVisibility(View.GONE); } } public void setVisableTrue(){ Toast.makeText(SujieEasyActivity.this, "onblurs", Toast.LENGTH_SHORT).show(); } }, "myObj"); android方法裏面想讓控件隱藏起來