Пример #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")
  }