I made a Full-Screen app for android which hides both Navigation Bar & Status Bar that supports API 16 (starting from Jelly Bean).. I know that if I want to hide both Navigation Bar & Status Bar starting from KitKat I can use the following code:
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
But that code doesn't work for Jelly Bean, it hides the bars only once and they reappear once you touch the screen. So I know that the following code supports Jelly Bean but it only hides the Status Bar:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Can anyone show me the way to hide the Navigation Bar as well on Jelly Bean permanently?