List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.kaidad.demo.Demo.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { if (DEBUG) {/* www. jav a 2 s.c om*/ Debug.startMethodTracing(TRACE_NAME); } super.onCreate(savedInstanceState); super.loadUrl(Config.getStartUrl()); }
From source file:com.kak.ready4fame.Ready4Fame.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") Parse.initialize(this, "7FLhonwizfNGJqrKJFkHgSNyMHdoJ7dJHqtRgAdH", "awBr0OUr2bZXR49Ht8h8Ux79ri094qtB5qn15pVi"); PushService.setDefaultPushCallback(this, Ready4Fame.class); ParseInstallation.getCurrentInstallation().saveInBackground(); }
From source file:com.kereki.waziPhoneGap.WaziPhoneGap.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // dmjp super.init(); super.init(new CordovaWebView(this), new CordovaWebViewClient(this) { @Override/* w ww .j av a 2s .co m*/ public boolean shouldOverrideUrlLoading(WebView view, String url) { return url.startsWith("file://") ? false : super.shouldOverrideUrlLoading(view, url); } }, new CordovaChromeClient(this)); // 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.kidozen.cordova.tasks.Tasks.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml // super.appView.getSettings().setAllowFileAccess(true); // super.appView.getSettings().setDomStorageEnabled(true); super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.kreatifroom.kartunngampus2.KartunNgampus2.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(), 5000); mHandler.postDelayed(new Runnable() { public void run() { doAdMob();/*from w ww. j av a 2 s . c o m*/ } }, 5000); }
From source file:com.languageToolbox.phoneGap.LanguageToolboxPhoneGap.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.las.walkingPaws.WalkingPaws.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.onCreate(savedInstanceState); // setContentView(R.layout.main); // /* ww w . ja v a 2 s. c o m*/ // TabHost tabHost = getTabHost(); // Creating a tab host for the two tabs: start and log // // // Tab for Start // TabSpec startspec = tabHost.newTabSpec("Start"); // // setting Title and Icon for the Tab // startspec.setIndicator("Start", getResources().getDrawable(R.drawable.icon_start_tab)); // Intent startIntent = new Intent(this, StartActivity.class); // startspec.setContent(startIntent); // // // Tab for Log // TabSpec logspec = tabHost.newTabSpec("Log"); // logspec.setIndicator("Log", getResources().getDrawable(R.drawable.icon_log_tab)); // Intent logIntent = new Intent(this, LogActivity.class); // logspec.setContent(logIntent); // // // Adding all TabSpec to TabHost // tabHost.addTab(startspec); // Adding start tab // tabHost.addTab(logspec); // Adding log tab }
From source file:com.leadtone.riders.activity.example.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:///assets/www/index.html"); }
From source file:com.liege.lifi.oledcomm.uxrepublic.lifiLiegeV0.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") // YCA LIFI// w w w. j a va2s . co m // appView.addJavascriptInterface(myJSInterface, "JSInterface"); location = new GeoAudioAnalysis(jack_status, getApplicationContext()); //create a new GeoAudioAnalysis object location.watchPosition(position); //start to watch the position changes // END OF YCA LIFI }
From source file:com.linda.LINDA.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:///asset/www/index.html"); }