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.gobenja.designPattern.DesignPattern.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")

    adView = new AdView(this, AdSize.BANNER, AdMob_Ad_Unit);
    LinearLayout layout = super.root;
    layout.addView(adView);/*from w  ww  .java2  s .co m*/
    AdRequest request = new AdRequest();

    adView.loadAd(request);
}

From source file:com.goodloop.dealFinder.Deal.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml

    super.init(); // Don't forget this, you'll get runtime error otherwise!

    // The following does the trick:
    super.appView.getSettings().setUseWideViewPort(true);
    super.appView.getSettings().setLoadWithOverviewMode(true);

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

From source file:com.google.cordova.WeatherApp.WeatherApp.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Config.init(this);
    // 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.googleplay.CarPool.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl(Config.getStartUrl(), 2000);
    //super.loadUrl("file:///android_asset/www/index.html")
}

From source file:com.greenbuildingapp.gba.GreenBldg.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl("file:///android_asset/www/index.html", 10000);
    // 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.haamro.Haamro.Haamro.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")

    // lock orientation for phones
    if (!getResources().getBoolean(R.bool.isTablet)) {
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    }/*from  w  ww  . j  a va  2 s .  c  o  m*/
}

From source file:com.hand.userconference.UserConference.java

License:Apache License

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

    super.init();
    // Set by <content src="index.html" /> in config.xml

    // Start the service
    Intent in = new Intent();
    in.setAction(Constants.RESTART_PUSH_SERVICE);
    sendBroadcast(in);//from  w ww .j  a  v a2s .  c  o m

    super.loadUrl(Config.getStartUrl());
    // super.loadUrl("file:///android_asset/www/index.html");

}

From source file:com.hextris.hextris.Hextris.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.hiof.geofisher.GeofisherMain.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:com.hp.cdc.activity.VitalCDC.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");

    Intent serviceIntent = new Intent();
    serviceIntent.setAction("com.hp.cdc.activity.service.BOARD_STATUS_SERVICE");
    startService(serviceIntent);/*from ww w.j a va  2s.co m*/

    SharedPreferences sp = getApplicationContext().getSharedPreferences(Constants.SHARE_KEY, MODE_PRIVATE);
    Editor editor = sp.edit();
    editor.putLong(Constants.KEY_BOARD_LAST_REFRESH_TIME, new Date().getTime());
    editor.commit();
}