List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.at.arsenal.ArsenalTerapeutico.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { try {/*from w w w . j a v a 2s . c om*/ File dbFile = getDatabasePath("basededatos.db"); if (!dbFile.exists()) { this.copy("basededatos.db", dbFile.getAbsolutePath()); } } catch (Exception e) { e.printStackTrace(); } 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.auphonic.www.Auphonic.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON); super.onCreate(savedInstanceState); super.loadUrl(Config.getStartUrl()); }
From source file:com.awaa.domlauncher.DOMLauncher.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.clearCache(); File sdcard = Environment.getExternalStorageDirectory(); File appDir = new File(sdcard + "/DOMLauncher"); if (sdcard.exists()) { if (!appDir.exists()) { appDir.mkdirs();/*from w w w . ja v a2s. c o m*/ super.loadUrl(Config.getStartUrl()); } else { String dmdSetting = getActive(); String dmdName = dmdSetting.replace("\"", ""); File dmdLocation = new File(sdcard, "/DOMLauncher/" + dmdName + "/index.html"); Log.d(TAG, "Activity:" + sdcard + "/DOMLauncher/" + dmdName + "/index.html"); if (dmdLocation.exists()) { super.loadUrl("file:///" + dmdLocation.getAbsolutePath()); } else { super.loadUrl(Config.getStartUrl()); } } } else { super.loadUrl(Config.getStartUrl()); } }
From source file:com.baidu.push.example.cordovaExample.java
License:Apache License
@Override =======// w w w.j a v a 2 s . com @SuppressLint("SetJavaScriptEnabled") @Override >>>>>>> release public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.init(); mc = new NotificationDestiny(); super.appView.addJavascriptInterface(mc, "MyCls"); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") PushManager.startWork(getApplicationContext(), PushConstants.LOGIN_TYPE_API_KEY, "abyyZObK5IHGs1gHPR1GqYhF"); // PushManager.startWork(getApplicationContext(), // PushConstants.LOGIN_TYPE_API_KEY, Utils.getMetaValue(cordovaExample.this, "api_key")); // initNotification(); super.appView.getSettings().setJavaScriptEnabled(true); super.appView.addJavascriptInterface(this, "MyCls"); }
From source file:com.bairesdev.talkngolf.talkngolf.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(), 4000); //super.loadUrl("file:///android_asset/www/login.html"); }
From source file:com.bantayso.a2048.a2048.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"); adView = new AdView(this, AdSize.BANNER, AdMob_Ad_Unit); LinearLayout layout = super.root; layout.addView(adView);//from w w w . j a va 2 s. c om AdRequest request = new AdRequest(); // Comment this out before publishing. // request.addTestDevice(AdRequest.TEST_EMULATOR); adView.loadAd(request); }
From source file:com.bcultura.faladoiro.Faladoiro.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); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:com.beanjar.mybeanjar.MyBeanJar.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(), 10000); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:com.bradorego.progenhpg.HelloWorld.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()); String ua = this.appView.getSettings().getUserAgentString(); this.appView.getSettings().setUserAgentString(ua + " phonegap_prog_enh"); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.braican.Ridetracker.Ridetracker.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.setIntegerProperty("splashscreen", R.drawable.screen); super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl(), 4000); //super.loadUrl("file:///android_asset/www/index.html") }