Search code examples
androidandroid-notification-bar

Android 4.0.3 Hide Notification Bar and Title Bar


I want to make my application go fullscreen in any android device. Hide the Title bar and also the notification bar. The application is supposed to run on a 10 inch tablet on Android 4.0.3. I am using the following code but only the title bar disappears. I want to hide the notification bar also. Can anyone please tell me what I am doing wrong in my code ?

getWindow().requestFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

Solution

  • The thing holding the navigation buttons back and home, time, network information etc is referred to as "navigation" bar.

    You can not hide it within the given framework, but it is possible if rooting the device is an option for you:

    1. Root device

    2. Install and run Busybox

    3. Install HideBar

    In HideBar there is an option to run in 'Kiosk' mode, in which there is no way to re-display the navigation bar. Needless to say, you really need to be careful with this.

    This question was also asked here:

    Android tablet navigation bar won't hide

    How to remove system bars on Android, I mean, all

    Android tablet navigation bar won't hide

    Is there a way to hide the system/navigation bar in Android ICS

    Hide Tablet system bar

    Real Fullscreen with Android 4 Tablets

    Easy way to hide system bar on Android ICS