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.alcherk.tabloid.tabloid.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/src/index.html");
}

From source file:com.android.pyquiz.PyQuiz.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    super.appView.getSettings().setUserAgentString("PYQUIZ_ANDROID");
    //int playservice = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    //Log.d("pyquiz", "Asas");
    // Log.d("pyquiz", playservice+"");
    // Set by <content src="index.html" /> in config.xml

    super.loadUrl(Config.getStartUrl(), 5000);
    //super.loadUrl(" http://3d904ea3.ngrok.com");
}

From source file:com.app.TaTeTi.TATETI.java

License:Apache License

/**
 * aqui se lanza la ventana principal/*from  w ww  .  ja va 2s .  co m*/
 */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();
    //TODO: aqui se crea el controlador para los eventos de la ventana de inicio
    this.controller = new TatetiController(this);
    //TODO :aqui se determinar la interface que va a interacturar con javascript
    this.appView.addJavascriptInterface(this.controller, "TatetiController");
    //TODO : 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.app47.Pg2.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    EmbeddedAgent.configureAgent(getApplicationContext());
    // 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.Application.LocationMapper.MyLocationMap.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
    super.setBooleanProperty("showTitle", true);
    super.onCreate(savedInstanceState);
    super.init();
    // Set by <content src="index.html" /> in config.xml
    super.loadUrl(Config.getStartUrl());
    getActionBar();//from ww  w . j  ava2 s  .c  om
    //super.loadUrl("file:///android_asset/www/index.html");
}

From source file:com.apptuter.Apptuter.java

License:Apache License

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

}

From source file:com.AppV1.AppV1.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Set by <content src="index.html" /> in config.xml
    // tried this, but it didn't seem to work
    super.setBooleanProperty("keepRunning", true);

    /////////// start of added code
    ////from  ww  w.  j a va2 s.com
    // please start the service AppService (described in the .xml file in the root directory)
    Intent i = new Intent(this, AppService.class);

    // parameters to the service
    i.putExtra(AppService.EXTRA_PLAYLIST, "main");
    i.putExtra(AppService.EXTRA_SHUFFLE, true);

    // do the actual start
    startService(i);
    //
    /////////// End of added code

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

From source file:com.april1985.android_beacon_demo.BeaconDemo.java

License:Apache License

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

    iBeaconManager = IBeaconManager.getInstanceForApplication(this);
    iBeaconManager.bind(this);
}

From source file:com.april1985.hm_ble_manager.HMBLEMangaer.java

License:Apache License

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

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        WebView.setWebContentsDebuggingEnabled(true);
    }//from   ww w.jav a 2  s.  c o  m
}

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