I'm trying to recreate the Find on Page feature found in the Android browser, so I can apply it to my webview.
Does anyone know a good place for me to start looking or any hints?
So far, I:
webView. findAll ("something");
try
{
Method m = WebView.class.getMethod ("setFindIsUp", Boolean.TYPE);
m.invoke (webView, true);
}
catch (Throwable ignored)
{
Log.i ("Error", ignored.toString ());
}
But this allows only a predefined search. The browser allows you to enter something to search.
I hope there are some examples to work with. I canβt imagine that I am the first who wants to do this.
Any help is much appreciated!
source share