在@JavascriptInterface代码中调试为什么没有反应?

@JavascriptInterface
public void goWrite(){
Intent intent = new Intent(MyCompanyVcardActivity.this,WriteH5CompanyAdvertisementActivity.class);
rightText.setText("保存");//没有更新反应
Log.i("hhh", "goWrite");
startActivityForResult(intent, 5);
}
在webview中加载h5界面,其中用到的js函数为goWrite,可是我调试或者打Log完全看不到反应,这是为什么呢?还有为什么在这里面想更新android的控件也没有反应呢?谢谢求大神告知急

webview设置:
    WebSettings webSettings = webView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    webSettings.setSupportZoom(false);
    webView.addJavascriptInterface(object, name);

html中js中对应方法: name.goWrite()

看下是不是哪里没对应上?