I'm developing a bridge and am able to send a message from JS to Java. But now, I want to send a message back to JS.
I know about a way of doing it using Activity.startActivityForResult(intent, request_code) And then calling webView.evaluateJavascript but I don't want the intent part.
Is there a way to create an empty intent (new Intent() doesn't work) or an alternative to this method?