Is it possible to use private inner class, as Javascript interface for WebView?
public class WebController{
private WebView wv;
public WebController(WebView wv){
this.wv=wv;
this.wv.addJavascriptInterface(new JSInterface(), "Android");
}
private class JSInterface{
void someMethod(){ /* ... */ }
}
}
And yes – it’s possible. Looks like that Java reflexion works here.