예제 #1
0
파일: AddWebView.java 프로젝트: punkle/Quiz
  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);
  }
예제 #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");
  }
예제 #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);
  }
예제 #4
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

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