Skip to content Skip to sidebar Skip to footer

Get Cordova Webview Instance And Loadurl - Android

I need to load the external URL in CordovaWebview. I have the following code. public class ActionBar extends CordovaActivity { @Override public void onCreate(Bundle savedInstan

Solution 1:

Maybe this will help:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // you need to call init() so the appView member gets initialized...
    super.init();
    appView.loadUrl("https://google.com");
}

Post a Comment for "Get Cordova Webview Instance And Loadurl - Android"