List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:no.helgelandskraft.power_supply.HelloWorld.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(), 5000); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:no.kernel.GeoKulTur.GeoKulTur.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //super.appView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); //super.getSettings().setRenderPriority(RenderPriority.HIGH); //webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") try {//from ww w .jav a 2s.co m super.appView.getSettings().setRenderPriority(RenderPriority.HIGH); } catch (Exception e) { } try { super.appView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); } catch (Exception e) { } }
From source file:no.visma.patentstyret.Patentstyret.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { //CookieManager.setAcceptFileSchemeCookies(true); 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:nz.ac.waikato.cs.tipple.innovation2014.FieldaysInnovation.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Fix to the very problem described in // http://stackoverflow.com/questions/23804983/phonegap-landscape-orientation-samsung-tab-3 // which is that, even after editing AndroidManifest.xml and AndroidManifest.cordova.xml to // use "Landscape" for the main (FieldaysInnovation) Activity, these xml files got overwritten // every time with "userLandscape" and most pages appeared on the screen in Portrait anyway. // Fix described in http://stackoverflow.com/questions/9801128/phonegap-forcing-landscape-orientation // "try this in your activity. Inside onCreate() and before setContentView." // keeps the screen orientation in Landscape mode setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); 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:nz.co.groundtruth.trappapp.TrappApp.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.loadUrl("file:///android_asset/app/index.html"); }
From source file:org.audreyt.dict.moe.MoeDict.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (0 != (getApplicationInfo().flags = ApplicationInfo.FLAG_DEBUGGABLE)) { Log.i("Your app", "Enabling web debugging"); WebView.setWebContentsDebuggingEnabled(true); }// ww w . j av a 2 s .co m } super.onCreate(savedInstanceState); super.init(); // Set by <content src="index.html" /> in config.xml super.setIntegerProperty("splashscreen", R.drawable.splash); if (android.os.Build.VERSION.RELEASE.startsWith("2.")) { super.loadUrl("file:///android_asset/www/index.no-react.html", 2500); } else { super.loadUrl(Config.getStartUrl(), 2500); } //super.loadUrl("file:///android_asset/www/index.html") }
From source file:org.cathassist.app.CathAssist.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:org.dennis.myhac.MyHAC.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/index.html"); }
From source file:org.emocha.midot.MainActivity.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); appView.addJavascriptInterface(this, "MainActivity"); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:org.mexusbio.digitallibrary.SecureGOV.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { if (getResources().getBoolean(R.bool.portrait_only)) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } else {//from ww w . jav a 2 s .c o m setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); } super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html") }