- getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
- ///setContentView(R.layout.activity_main);
+// getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
+// requestWindowFeature(Window.FEATURE_NO_TITLE);
+// getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
+// ///setContentView(R.layout.activity_main);
+// //getWindow().setNavigationBarColor(Color.TRANSPARENT);
+//
+// View decorView = getWindow().getDecorView();
+// int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
+// | View.SYSTEM_UI_FLAG_FULLSCREEN;
+// decorView.setSystemUiVisibility(uiOptions);
+//
+//
+// ActionBar actionBar = getSupportActionBar();
+// try {
+// actionBar.hide();
+// }catch (NullPointerException e){
+// gLogger.error("initCameraView - " + e.getMessage());
+// e.printStackTrace();
+// }
+
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);//竖屏