Example usage for org.apache.cordova Config getStartUrl

List of usage examples for org.apache.cordova Config getStartUrl

Introduction

In this page you can find the example usage for org.apache.cordova Config getStartUrl.

Prototype

public static String getStartUrl() 

Source Link

Usage

From source file:br.usp.ime.agusp.movel.AgUSP.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 10000);
}

From source file:ca.edumedia.m.biss0180.HelloCordova.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl(), 5000);
    //super.loadUrl("file:///android_asset/www/index.html")
    super.setIntegerProperty("splashscreen", R.drawable.splash);
}

From source file:ca.sfu.EventfulCloud.EventfulCloud.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    // To avoid error code 3 on photo upload
    System.setProperty("http.keepAlive", "false");

    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")

    // Fix flashing white screen between pages
    appView.setBackgroundColor(Color.parseColor("#303030"));
}

From source file:cannonerd.fun.flowDrone.flowDrone.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    super.loadUrl("file:///android_asset/www/app/index.html");
}

From source file:cc.codehero.foodroulette.foodroulette.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
    this.appView.setWebViewClient(new CordovaWebViewClient(this, this.appView) {

        @Override//  ww w. j a va  2s . c  o  m
        public boolean shouldOverrideUrlLoading(WebView view, String url) {

            if (url.contains("http://localhost:9000/#/login")) {
                String md5_hash = url.replace("http://localhost:9000/", "");
                url = "file:///android_asset/www/index.html";
                view.loadUrl("javascript:window.location.href = '" + md5_hash + "';");
                Log.d("DEBUG", url);
                return true;
            } else {
                Log.d("DEBUG", url);
                //view.loadUrl(url);
                return super.shouldOverrideUrlLoading(view, url);
            }

        }

    });
}

From source file:ch.schwingenonline.app.Schwingenonline.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.loadUrl(Config.getStartUrl());

    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl("file:///android_asset/www/index.html", 2000);
}

From source file:cl.ned.combate.Combate.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html");

    Parse.initialize(this, "HEiWxABjPDZEfbTJ8UTQGfQBa8Lz94psDwy9Q2CQ",
            "GvIK0BPxf0N10hKiNuRQsELTuqdRFnaMirQ7vuOJ");
    PushService.setDefaultPushCallback(this, Combate.class);
    ParseInstallation.getCurrentInstallation().saveInBackground();
}

From source file:cn.edu.gdmec.HelloWorld.java

License:Apache License

@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.init();
        // Set by <content src="index.html" /> in config.xml
        super.loadUrl(Config.getStartUrl());
        //super.loadUrl("file:///android_asset/www/index.html")
    }/*from w ww.  j a  v  a  2 s  . c om*/

From source file:cn.swu.indoormap.Activity.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    super.loadUrl(Config.getStartUrl());
}

From source file:cn.weidianhuabu.example.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    super.setIntegerProperty("splashscreen", R.drawable.splashscreen);
    super.loadUrl(Config.getStartUrl(), 3000);
    //super.loadUrl("file:///android_asset/www/index1.html");
}