List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.phonegap.dictionary.Dictionary.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); //Use this code in your bootstrapping steps like in onCreate() try {//from ww w.j a va 2 s . c o m String pName = this.getClass().getPackage().getName(); this.copy("av_dict.db", "/data/data/" + pName + "/databases/"); this.copy("dictionary.db", "/data/data/" + pName + "/databases/"); //this.copy("0000000000000001.db", "/data/data/" + pName + "/app_database/file__0/"); } catch (IOException e) { e.printStackTrace(); } // 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.phonegap.goldmaster.GoldMaster.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.setIntegerProperty("loadUrlTimeoutValue", 60000); super.setIntegerProperty("splashscreen", R.drawable.splash); 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"); new Thread(new Runnable() { @Override//from ww w . j a va 2 s . c om public void run() { if (getServerVerCode()) { int vercode = UpdateConfig.getVerCode(GoldMaster.this); if (ver > vercode) { Message message = new Message(); message.what = 1; mHandler.sendMessage(message); //doNewVersionUpdate(); } else { //notNewVersionShow(); } } } }).start(); }
From source file:com.phonegap.handband.HelloWorld.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.phonegap.helloworld.CarComp.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); //disable full screen mode getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); // 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.phonegap.helloworld.DenverDeals.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.init(); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(Config.getStartUrl(), 10000); //super.loadUrl("file:///android_asset/www/index.html"); }
From source file:com.phonegap.helloworld.WMB.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"); }
From source file:com.phonegap.hello_world.BeyondTouch.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()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.phonegap.hello_world.Hello_World.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") }
From source file:com.phonegap.hotsopt.HOTSPOT.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"); }
From source file:com.phonegap.noobaa.NoobaaMain.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = getApplicationContext();//from w ww.ja va 2 s . c om am = (AlarmManager) getSystemService(Context.ALARM_SERVICE); // BroadcastNotification bn = new BroadcastNotification(); // bn.onReceive(context, new Intent(this, BroadcastNotification.class)); setContentView(R.layout.main); cwv = (CordovaWebView) findViewById(R.id.tutorialView); Config.init(this); cwv.loadUrl(Config.getStartUrl()); }