convert javascript variable to string in android studio 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())");
}
});