List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:edu.cornell.shift.Shift.java
License:Apache License
private void runOcr(String lang) { appView.setWebViewClient(new CordovaWebViewClient(this, appView) { @Override// ww w .j a va 2 s . com public boolean shouldOverrideUrlLoading(WebView view, String url) { Log.d("Shift", "shouldOverrideUrlLoading " + url); if (url.startsWith("app://ocr")) { Uri uri = Uri.parse(url); String success = uri.getQueryParameter("success"); String message = uri.getQueryParameter("message"); if ("true".equals(success)) { generateResult(message); finish(); } else { Intent result = new Intent(); result.putExtra("score", 0.0); setResult(Activity.RESULT_CANCELED, result); finish(); } return true; } else { return super.shouldOverrideUrlLoading(view, url); } } }); loadUrl(Config.getStartUrl() + "#ocr-options?service=true&lang=" + lang); }
From source file:edu.ucsc.dininghallapp.DiningHall.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"); Parse.initialize(this, "RZ05mGnElN6g1Ht3nKIrdZ74iRQOdglfTsR8QUtf", "D6nvjIro6mg173U7cnsZo0MS9h5JxTwPuLIC4xXm"); PushService.subscribe(this, "", DiningHall.class); }
From source file:edu.upc.fib.raco.RacoMobile.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (!isTablet()) { // Is phone, support portrait only this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }//from www . j a va 2s .co m super.loadUrl(Config.getStartUrl()); }
From source file:es.atos.gen.gen.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.init(); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl(), 4000); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:es.cdciudadleganes.app.CiudadLeganes.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(), 3000); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:fr.havas.HavasCafe.HavasCafe.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") super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 4000); }
From source file:fr.polytech.bonscomptes.Cordova.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 2500); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:il.co.bussiness.Isracard_Bussiness.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.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 5000); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:info.almonacilo.fiestas.Fiestas.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.clearCache(); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:io.turo.app.Turo.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 2850); // Set by <content src="index.html" /> in config.xml //super.loadUrl("file:///android_asset/www/index.html") }