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); }
/** 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"); }
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); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); }