I can hide on screen home and back buttons like this:
@Override protected void onCreate(Bundle savedInstanceState)
{
this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
this.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);)
}
and same as onResume. But when my app opens the soft keyboard the buttons comes again and doesn't disappear after keyboard closes. I want home and back buttons to be invisible after soft keyboard is hidden. Any help would be appreciated.