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

    super.loadUrl(getString(R.string.add_url));

    getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN
                | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
  }
Esempio n. 2
0
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    Keyboard keyboard = new Keyboard(this, appView);
    appView.addJavascriptInterface(keyboard, "Keyboard");

    // setContentView(R.layout.main);
    super.loadUrl("file:///android_asset/www/index.html");
  }
Esempio n. 3
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());

    String color_schema =
        pref.getString(
            getString(R.string.color_schema_key), getString(R.string.color_schema_default));
    String language =
        pref.getString(getString(R.string.language_key), getString(R.string.language_default));

    super.loadUrl("file:///android_asset/www/rules.html?" + color_schema + "&" + language);
  }
Esempio n. 4
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    super.loadUrl("file:///android_asset/www/index.html");
  }