Search in sources :

Example 1 with ConfigXmlParser

use of org.apache.cordova.ConfigXmlParser in project cordova-android by apache.

the class EmbeddedWebViewActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    //Set up the webview
    ConfigXmlParser parser = new ConfigXmlParser();
    parser.parse(this);
    SystemWebView webView = (SystemWebView) findViewById(R.id.cordovaWebView);
    webInterface = new CordovaWebViewImpl(new SystemWebViewEngine(webView));
    webInterface.init(cordovaInterface, parser.getPluginEntries(), parser.getPreferences());
    webView.loadUrl(parser.getLaunchUrl());
}
Also used : SystemWebView(org.apache.cordova.engine.SystemWebView) SystemWebViewEngine(org.apache.cordova.engine.SystemWebViewEngine) ConfigXmlParser(org.apache.cordova.ConfigXmlParser) CordovaWebViewImpl(org.apache.cordova.CordovaWebViewImpl)

Aggregations

ConfigXmlParser (org.apache.cordova.ConfigXmlParser)1 CordovaWebViewImpl (org.apache.cordova.CordovaWebViewImpl)1 SystemWebView (org.apache.cordova.engine.SystemWebView)1 SystemWebViewEngine (org.apache.cordova.engine.SystemWebViewEngine)1