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.ur.vbg.VBG.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.appView.setVerticalScrollBarEnabled(true);
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.urucas.tmusica.TaringaMusica.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());

    Log.i("creado", "aca");
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.uvhc.aroundme.aroundme.java

License:Apache License

@Override
public void loadWebApp() {
    super.loadUrl(Config.getStartUrl());
}

From source file:com.virtualama.application.Virtualama.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.init();/*from   ww w  .  j a  v a 2  s  . c  o  m*/
    // 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.vmware.letshire.LetsHire.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) /* Android Intent Launcher */
{
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    ////  ww w  .j  ava2  s  .  c o m
    // launch web url into WebView which is responsible to do
    // HTML/CSS rending
    super.loadUrl(Config.getStartUrl());
}

From source file:com.waveaccess.compliments.Compliments.java

License:Apache License

/**
 * Called when the activity is first created.
 *///  w  w w .  j av  a2  s  . c  o m
@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")
    // Create an ad.
    adView = new AdView(this);
    adView.setAdSize(AdSize.SMART_BANNER);
    adView.setAdUnitId(AD_UNIT_ID);
    // Add the AdView to the view hierarchy. The view will have no size
    // until the ad is loaded.
    super.root.addView(adView);

    // Create an ad request. Check logcat output for the hashed device ID to
    // get test ads on a physical device.
    AdRequest adRequest = new AdRequest.Builder().setGender(AdRequest.GENDER_MALE)
            .addTestDevice(AdRequest.DEVICE_ID_EMULATOR).addTestDevice("9591A87932AA4DDF6E6C0E740BFEB9E0")
            .build();

    // Start loading the ad in the background.
    adView.loadAd(adRequest);
}

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

From source file:com.westpac.ATMBranch.ATMBranch.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:com.wetu.chronicle.chronicle.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.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl("file:///android_asset/www/index.html", 1000);
}

From source file:com.worldtravelinc.worldmobile.WorldTravel.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 http://docs.phonegap.com/en/3.0.0/cordova_splashscreen_splashscreen.md.html
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 10000);
}