@Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.setIntegerProperty("splashscreen", R.drawable.splash);
   super.loadUrl("file:///asset/www/index.html", 50000);
   // setContentView(R.layout.activity_main);
 }
 @Override
 public void onCreate(final Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
   webView = (CordovaWebView) findViewById(R.id.webView);
   webView.loadUrl("file:///android_asset/web/index.html");
 }
 @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/app/index.html");
 }
Exemple #4
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    try {
      this.wwwRoot =
          new File(
              this.getFilesDir().getAbsolutePath() + File.separator + LocationUtils.assetsFlag);
      if (this.wwwRoot.exists()) {
        this.wwwRoot.delete();
      }
      LocationUtils.copyAsset(this.getContext(), this.getFilesDir());
      this.httpServer = new DelveHTTPD(8080, this.wwwRoot);
    } catch (Exception e) {
      e.toString();
    }

    // Initialize activity
    super.init();

    // Clear cache if you want
    super.appView.clearCache(true);

    super.appView.getSettings().setAllowFileAccess(true);
    super.appView.getSettings().setAllowContentAccess(true);

    super.setStringProperty("errorUrl", "file:///android_asset/www/error.html"); // if error loading
    // file in
    // super.loadUrl().
    super.loadUrl("http://localhost:8080/");
    // super.loadUrl("file:///android_asset/www/index.html");
    // super.loadUrl("http://192.168.1.102/");
  }
Exemple #5
0
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    super.setBooleanProperty("loadInWebView", true);
    super.loadUrl("http://192.168.1.111:8080/ijsp/m/index.htm");
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.setIntegerProperty("splashscreen", R.drawable.splash);
   // Set by <content src="index.html" /> in config.xml
   super.loadUrl(Config.getStartUrl(), 10000);
   // super.loadUrl("file:///android_asset/www/index.html")
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.loadUrl("file:///android_asset/www/index.html");

    // attach websocket factory
    appView.addJavascriptInterface(new WebSocketFactory(appView), "WebSocketFactory");
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   // super.setIntegerProperty("splashscreen", R.drawable.splash);
   try {
     super.loadUrl(constantes.K_GetLocalUrl);
     // notificaciones.DoToast("Iniciando...", getApplicationContext());
   } catch (Exception e) {
     notificaciones.DoToast(e.getMessage(), getApplicationContext());
   }
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    // LogCat: onReceivedHttpAuthRequest(browserspy.dk:80,BrowserSpy.dk - HTTP Password Test)
    AuthenticationToken token = new AuthenticationToken();
    token.setUserName("test");
    token.setPassword("test");
    super.setAuthenticationToken(token, "browserspy.dk:80", "BrowserSpy.dk - HTTP Password Test");

    // Add web site to whitelist
    super.appView.addWhiteListEntry("http://browserspy.dk*", true);

    // Load test
    super.loadUrl("file:///android_asset/www/basicauth/index.html");
  }
Exemple #10
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.loadUrl("file:///android_asset/www/index.html");
 }
 @Override
 public void onCreate(Bundle savedInstanceState)
 {
     super.onCreate(savedInstanceState);
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.setIntegerProperty("splashscreen", R.drawable.splash);
   super.loadUrl("file:///android_asset/www/index.html", 3000);
 }
Exemple #13
0
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   // setContentView(R.layout.main);
   super.loadUrl("file:///android_asset/www/index.html");
 }