Reputation: 13
I want my app to interact with my HTML page. Using a scheme and intent filter I can catch links but the problem is how to send things back to the browser. For example if I want to use my JS function I can use a WebView and call loadUrl("javascript:MyJSFunction(..) Can I do it with out the view part of the WebView?
Upvotes: 0
Views: 687
Reputation: 9035
Add a WebView
and set it visibility to View.GONE
Like
WebView webView=new WebView(this);
webView.setVisibility(View.GONE);
then
webView.loadUrl("javascript:MyJSFunction(..)
Upvotes: 3