I am developing an application only for tablets, where you need to run the application on the full screen of the tablet.
For this, I used the following code in my main action:
getWindow().requestFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
This piece of code only removes the title bar and action bar. But tablets have a lower system panel (with a home and back button). I also want to remove or hide this system panel too.
I searched, but there is only the following solution:
- There is no API to remove or hide the system panel.
- You can use the Android application to hide the system panel. (for example: confident, hidden, etc.)
My question is:
- Is this possible in android?
- An upcoming application (e.g. locklock, hide bar, etc.) also hides the bar. This means that they are using something for this. You can use this something in our application, so the user does not need to download these app seperatly.
I beg you, please.
I know this is not a good idea. But my application is only for tablets with Android 4.0 or higher, and that the tablet will only launch one application, so we do not need to go back and use the home button. . Therefore, my requirement is to use the application in full screen.
source
share