@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); // super.loadUrl("file:///android_asset/www/sharedLayer/shared.html"); super.loadUrl("file:///android_asset/www/index.html"); super.setIntegerProperty("loadUrlTimeoutValue", 60000); }
/** * The IBM MobileFirst Platform calls this method after its initialization is complete and web * resources are ready to be used. */ public void onInitWebFrameworkComplete(WLInitWebFrameworkResult result) { if (result.getStatusCode() == WLInitWebFrameworkResult.SUCCESS) { super.loadUrl(WL.getInstance().getMainHtmlFilePath()); } else { handleWebFrameworkInitFailure(result); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); }
@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"); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { WebView.setWebContentsDebuggingEnabled(true); } }
@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("file:///android_asset/www/index.html", 3000); // super.loadUrl(Config.getStartUrl()); // super.loadUrl("file:///android_asset/www/index.html") }