1 protected void onResume() {
2 super.onResume();
3 View decorView = getWindow().getDecorView();
4 // Hide the status bar.
5 int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
6 decorView.setSystemUiVisibility(uiOptions);
7 }
8