convert param to string code example
Example: How to convert Javascript return value to String in Android
generate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
webView.loadUrl("javascript:alert(fing())");
}
});