List of usage examples for org.apache.cordova Config getStartUrl
public static String getStartUrl()
From source file:com.mobilise.it.MainActivity.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.setIntegerProperty("loadUrlTimeoutValue", 60000); super.setStringProperty("", "Loading..."); // show loading dialog //super.appView.getSettings().setRenderPriority(RenderPriority.HIGH); //super.appView.getSettings().setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND); super.loadUrl(Config.getStartUrl(), 60000); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.mobovip.app.BGR.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"); // getHashKey(); }
From source file:com.moodstocks.phonegap.plugin.CordovaFragment.java
License:Open Source License
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { LayoutInflater localInflater = inflater.cloneInContext(new CordovaContext(getActivity(), this)); View rootView = localInflater.inflate(R.layout.fragment_cordova, container, false); myWebView = (CordovaWebView) rootView.findViewById(R.id.myWebView); myWebView.setBackgroundColor(Color.argb(1, 0, 0, 0)); // fixes a bug in android 3.0 - 4.0.3 that causes an issue with transparent webviews. if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB && android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { myWebView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null); }//from w w w . j av a 2 s .co m Config.init(getActivity()); myWebView.loadUrl(Config.getStartUrl()); return rootView; }
From source file:com.MrPreneur.game.MrPreneur.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.setIntegerProperty("loadUrlTimeoutValue", 60000); //super.loadUrl("file:///android_asset/www/index.html") }
From source file:com.ms.minesweeper.MineSweeper.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/html/minesweeper.html"); }
From source file:com.myapp.ghenttakeout.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(), 20000); }
From source file:com.myappbuilder.car2.Realtors2.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.setIntegerProperty("splashscreen", R.drawable.splash); super.setIntegerProperty("splashScreenDelay", 5000); 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.mycompany.webInspect.webInspect.java
License:Apache License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); ivg = this;//from ww w .jav a2 s . com // 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.mySit.myzoom2.myzoom2.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") super.appView.getSettings().setBuiltInZoomControls(true); super.appView.getSettings().setDefaultZoom(ZoomDensity.MEDIUM); super.appView.getSettings().setSupportZoom(true); }
From source file:com.nbempire.dentalnavarra.DentalNavarraActivity.java
License:Open Source License
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); String params = ""; String message = getIntent().getStringExtra(RemembersService.NOTIFICATION_INTENT_PARAMETER_MESSAGE); String meetingDate = getIntent() .getStringExtra(RemembersService.NOTIFICATION_INTENT_PARAMETER_MEETING_DATE); String treatments = getIntent().getStringExtra(RemembersService.NOTIFICATION_INTENT_PARAMETER_TREATMENTS); if (message != null) { Log.d(TAG, "Adding parameter " + RemembersService.NOTIFICATION_INTENT_PARAMETER_MESSAGE + " to app URL: " + message); params = "?" + RemembersService.NOTIFICATION_INTENT_PARAMETER_MESSAGE + "=" + message + "&" + RemembersService.NOTIFICATION_INTENT_PARAMETER_MEETING_DATE + "=" + meetingDate + "&" + RemembersService.NOTIFICATION_INTENT_PARAMETER_TREATMENTS + "=" + treatments; }/* w w w.ja v a 2s .c o m*/ // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl() + params); Log.d(TAG, "Adding Javascript interface for WebViewBackendBridge..."); appView.addJavascriptInterface(new WebViewBackendBridge(this), "bridge"); }