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:com.pythondevside.Cheto.Cheto.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");
    super.setBooleanProperty("keepRunning", true);
}

From source file:com.qcs.mapsample.mapsample.java

License:Apache License

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

From source file:com.questionmark.smardrobe.Smardrobe.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(Config.getStartUrl(), 2500);
}

From source file:com.rasyid.ta.tripnotes.Tripnotes.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.setIntegerProperty("loadUrlTimeoutValue", 70000);
    super.loadUrl("file:///android_asset/www/main.html");
}

From source file:com.raxa.DoctorsNearMe.DoctorsNearMe.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");

    ////I put this
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 5000);
    // I put this
}

From source file:com.readfwd.deltaapp.DanubeDelta.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("http://192.168.28.131:4000/index.html");
}

From source file:com.rejh.icerrr.itson.Icerrr.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    // Clear cache
    super.clearCache();
    super.appView.getSettings().setAllowFileAccess(true);

    // Set by <content src="index.html" /> in config.xml
    super.setStringProperty("url", null);
    super.setStringProperty("errorUrl", null);
    super.loadUrl(Config.getStartUrl());

    //super.loadUrl("file:///android_asset/www/index.html")
    if (Build.VERSION.SDK_INT >= 19) {
        WebView.setWebContentsDebuggingEnabled(true);
    }//from w  w  w  . j  av  a 2 s.co m

    IntentFilter filter = new IntentFilter();
    filter.addAction("com.rejh.icerrr.droidapp.actions.KILL_APP");
    registerReceiver(killAppReceiver, filter);

    // Call onNewIntent when app is not started before..
    onNewIntent(getIntent());

}

From source file:com.reviyou.android.Reviyou.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {

    NewRelic.withApplicationToken("AAe3d745f58da34fea82b9809271721be2fabab9ac").start(this.getApplication());

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

From source file:com.rodorte.appasionate.Appasionate.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    super.loadUrl(Config.getStartUrl());
}

From source file:com.rossmartin.dropbox.PhoneGapSync.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.registerForContextMenu(super.appView);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
        // viewport hack needed for KitKat and maybe future versions
        super.appView.getSettings().setLoadWithOverviewMode(true);
        super.appView.getSettings().setUseWideViewPort(true);
    }//from www.  ja v  a2 s  .c o m
}