List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.sample.PhonegapFacebookTest.PhonegapFacebookTest.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.setIntegerProperty("loadUrlTimeoutValue", 70000); super.loadUrl(Config.getStartUrl()); }
From source file:com.saumyaray.cordova.a.TheAddress.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") //splash screen super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 2000); }
From source file:com.saylani.todoapp.MyTodoApp.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("http://google.com"); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:com.scalecentral.Scannr.Scannr.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") // super.setIntegerProperty("splashscreen", R.drawable.splash); // super.loadUrl(Config.getStartUrl(),10000); if (getResources().getConfiguration().orientation == 2) { super.setIntegerProperty("splashscreen", R.drawable.splashlandscape); // super.loadUrl(Config.getStartUrl(),10000); } else {/*from www.j av a2 s. com*/ super.setIntegerProperty("splashscreen", R.drawable.splashportrait); // super.loadUrl(Config.getStartUrl(),10000); } super.loadUrl(Config.getStartUrl(), 10000); }
From source file:com.schaeffler.assistant.Hypnos.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { WebView.setWebContentsDebuggingEnabled(true); }//from www . j a v a 2s. co m 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.seekon.ebs.YouGouHui.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); super.setIntegerProperty("splashscreen", R.drawable.splash); // 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.sencha.azure.push.Push.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.setIntegerProperty("loadUrlTimeoutValue", 60000); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.shikharam.happio.Happio.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // this is the specific line that prevents the screen from sleeping getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); // 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.sinisterwaltz.simple.SimpleApp.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // super.setIntegerProperty("splashscreen", R.drawable.splash); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl(), 5000); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.sinusgear.saurus.Wordsaurus.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") }