Example usage for org.apache.cordova.secondwebview SecondWebViewActivity self

List of usage examples for org.apache.cordova.secondwebview SecondWebViewActivity self

Introduction

In this page you can find the example usage for org.apache.cordova.secondwebview SecondWebViewActivity self.

Prototype

SecondWebViewActivity self

To view the source code for org.apache.cordova.secondwebview SecondWebViewActivity self.

Click Source Link

Usage

From source file:org.example.app.MainActivity.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    loadUrl(launchUrl);/* ww w .  j av  a2s.  c  o  m*/
    MainActivity.self = this;
    MainActivity.Interface = new SecondWebViewInterface("parent", MainActivity.self,
            SecondWebViewActivity.self);
    ((WebView) appView.getEngine().getView()).addJavascriptInterface(MainActivity.Interface, "Interface");
}