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.devtrac.mobile.DevtracMobile.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.setIntegerProperty("loadUrlTimeoutValue", 8000000);
    super.loadUrl(Config.getStartUrl());

    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.dialog_semiconductor.dsps.DSPS.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");

    IntentFilter intentFilter = new IntentFilter("App_Exit");
    this.registerReceiver(broadcastReceiver, intentFilter);
}

From source file:com.djoin.parking.parking.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    setBooleanProperty("showTitle", true);
    setIntegerProperty("splashscreen", R.drawable.boot);
    super.onCreate(savedInstanceState);

    try {//from ww w . j a  v  a 2  s . c  om
        ViewConfiguration config = ViewConfiguration.get(this);
        Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
        if (menuKeyField != null) {
            menuKeyField.setAccessible(true);
            menuKeyField.setBoolean(config, false);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }

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

From source file:com.dmdgeeker.bistulib.bistuLibMob.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.screen);
    super.loadUrl(Config.getStartUrl());
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.dolidiaries.beta.DoliDiaries.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    try {/*from w ww  .  j  av  a  2s .c o  m*/
        // super.setStringProperty("loadingDialog", "Launching your Diary...");
        super.setIntegerProperty("splashscreen", R.drawable.splash);

        super.loadUrl(Config.getStartUrl(), 1000);
    } catch (Error error) {
        Toast.makeText(getApplicationContext(), "Error" + error.getMessage(), 1).show();
    } catch (Exception ex) {
        Toast.makeText(getApplicationContext(), "Error" + ex.getMessage(), 1).show();
    }

    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.dp.ir.PocketLib.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(Config.getStartUrl());
}

From source file:com.dracontis.com.festivals.Festivals.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    super.getSettings().setJavaScriptEnabled(true);
    super.getSettings().setLoadWithOverviewMode(true);
    super.getSettings().setUseWideViewPort(true);
    super.setWebChromeClient(new WebChromeClient());
    // 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.drappenheimer.japxlate.Japxlate.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.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl()/*, 10000*/); //splash for max of ten secs
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.dtz.DTZMobility.java

License:Apache License

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

    String page = Config.getStartUrl();
    Bundle bundle = getIntent().getExtras();
    String action = getIntent().getAction();

    if (action != null && action.equals("com.dtz.cordova.VIEW_WORK_ORDER")) {
        page = Config.getStartUrl();/*from   w w  w . ja va  2s  .  c  o  m*/
        String workOrderId = "";
        if (bundle != null) {
            workOrderId = bundle.getString("WORK_ORDER_NO");
        }

        page = page + "?wo=" + workOrderId;
    }
    Log.d(TAG, "page : " + page);
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(page);
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.eddflrs.accessible_nyc.accessible_nyc.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.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 10000);
}