예제 #1
0
 @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);
 }
예제 #2
0
 /**
  * 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);
   }
 }
예제 #3
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.init();
   // Set by <content src="index.html" /> in config.xml
   super.loadUrl(Config.getStartUrl());
 }
예제 #4
0
 @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);
   }
 }
예제 #5
0
  @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")
  }