List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.sis.bandar.bandar_v10.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); // creates an interface to play sound this.appView.addJavascriptInterface(new AudioInterface(this), "audio"); this.appView.addJavascriptInterface(new FileOperationInterface(this), "file"); super.loadUrl(Config.getStartUrl()); }
From source file:com.skill.skill.Skill.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //super.setIntegerProperty("splashscreen", R.drawable.skill_big); super.setStringProperty("loadingDialog", "Title, Starting your app..."); //super.setIntegerProperty("loadUrlTimeoutValue", 70000); super.loadUrl(Config.getStartUrl(), 2000); }
From source file:com.smartLabel.utility.SmartLabels.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { String dataString = null;//from w ww . j a v a 2 s . c o 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") Intent intent = getIntent(); Uri uri = intent.getData(); if (null != uri) { String fileName = getContentName(getContentResolver(), uri); dataString = readContent(uri); if (null != dataString) { dbHelper = new SmartLabelSQLiteHelper(this.getApplicationContext()); dbHelper.writeToDB(fileName, dataString); dbHelper.close(); // FileUtils.write("attachment_invoke.xml", dataString); } } }
From source file:com.Sommerlichter.jWork.jWork.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(), 10000); }
From source file:com.sqmos.eduinf.Eduinf.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(), 10000); try {//from w ww. ja v a 2 s .c o m PackageInfo info = getPackageManager().getPackageInfo("com.sqmos.eduinf", PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.d("Hash Key:", Base64.encodeBytes(md.digest())); } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { } }
From source file:com.streetsoaker.app.StreetSoaker.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") WebSettings settings = appView.getSettings(); settings.setUseWideViewPort(true);/* ww w.ja va 2 s . co m*/ settings.setLoadWithOverviewMode(true); }
From source file:com.stuxpair.stuxpet.StuxPet.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); petData = new StuxPetDB(this); checkPet();/* w w w . j a v a2 s .co m*/ super.setIntegerProperty("splashscreen", R.drawable.splash); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl(), 3000); super.setIntegerProperty("splashscreen", R.drawable.splash2); }
From source file:com.taxitogether.TaxiPhonegap.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", 7000); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") WebSettings settings = appView.getSettings(); settings.setBuiltInZoomControls(false); settings.setSupportZoom(false);/*from w ww . ja v a 2s . co m*/ settings.setDefaultZoom(ZoomDensity.FAR); }
From source file:com.tcs.techbytes.TCS.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(), 5000); // 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.teachmatic.snapsupply.SnapSupply.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.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 10000); //super.loadUrl("file:///android_asset/www/index.html") }