In order to finish the requirements, you need to run an app on the Android system to control the hardware, today began to write the app.
First of all, our system will only run this app, that is, we do not need the status bar, virtual keys and so on.
This will set the app to full screen mode.
/** * Hide virtual keys, and full screen*/ PrivateFinalvoidHidebottomuimenu () {if(Build.VERSION.SDK_INT > One&& Build.VERSION.SDK_INT < +) {//Lower APIView v = This. GetWindow (). Getdecorview (); V.setsystemuivisibility (View.gone); } Else if(Build.VERSION.SDK_INT >= +) { //For new API versions.View Decorview =GetWindow (). Getdecorview (); intUioptions =view.system_ui_flag_hide_navigation| View.system_ui_flag_immersive_sticky |View.system_ui_flag_fullscreen; Decorview.setsystemuivisibility (uioptions); } }
However, after exiting the app, reopening the software will not be full screen.
graduatedesign-app Writing