Example usage for org.apache.cordova DroidGap init

List of usage examples for org.apache.cordova DroidGap init

Introduction

In this page you can find the example usage for org.apache.cordova DroidGap init.

Prototype

protected void init() 

Source Link

Usage

From source file:com.changeit.wmpolyfill.PhonegapWebClient.java

License:Apache License

/**
 * @param cordova// ww w  . ja v a 2  s  . com
 * @param view
 */
public PhonegapWebClient(DroidGap cordova, WebView view) {
    super(cordova);

    if (view == null) {
        view = new WebView(cordova);
        cordova.init(); // Trigger initialisation of WebView and other dependent objects
    }

    wmp = new WebClient(view);
    view.setWebViewClient(this);
}