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:ApplicationName.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 source file:$.extmd.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  w w .ja v  a2 s.c o m*/

From source file:ajeetmurty.reference.phoengap.db.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")
}

From source file:ampere.example.crontab.crontab.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")

    WebSettings ws = super.appView.getSettings();
    ws.setSupportZoom(true);/*  w ww.  j a  v  a 2  s.  com*/
    ws.setBuiltInZoomControls(true);
}

From source file:app.kmitl.contest.slc.SLC.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Add code to print out the key hash
    try {/*  w ww  .  j a  v a 2s  .  c o  m*/
        PackageInfo info = getPackageManager().getPackageInfo("app.kmitl.contest.slc",
                PackageManager.GET_SIGNATURES);
        for (Signature signature : info.signatures) {
            MessageDigest md = MessageDigest.getInstance("SHA");
            md.update(signature.toByteArray());
            Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
        }
    } catch (PackageManager.NameNotFoundException e) {

    } catch (NoSuchAlgorithmException e) {

    }
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.setIntegerProperty("splashscreen", R.drawable.demo_welcome);
    super.loadUrl(Config.getStartUrl(), 1500);
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:appsass.in.Appsassin.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 source file:ar.dosclics.FarmaJuy.MiPosicion.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 source file:br.com.multicast.mobile.MulticastMobile.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    String url;//  www  . j  a  va 2  s  .c o  m
    if (this.getIntent().hasExtra("url")) {
        url = this.getIntent().getStringExtra("url");
    } else
        url = Config.getStartUrl();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(url);
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:br.com.voudebikepoa.VouDeBikePOA.java

License:Apache License

@Override
protected void onResume() {
    super.onResume();
    ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
    NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
    if (networkInfo != null && networkInfo.isConnected())
        super.loadUrl(Config.getStartUrl());
    else/*from   w  w  w  .j  ava2s . co  m*/
        super.loadUrl(Config.getNoConnectionErrorUrl());
}

From source file:br.usp.icmc.project.Project.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    super.init();

    communication = new Communication(this, appView);
    appView.addJavascriptInterface(communication, "communication");

    super.loadUrl(Config.getStartUrl());

    DBManager.onCreate(this);

}