Esempio n. 1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    WL.createInstance(this);

    WL.getInstance().showSplashScreen(this);

    WL.getInstance().initializeWebFramework(getApplicationContext(), this);
  }
Esempio n. 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);
   }
 }