Per request, I'm trying to make an Android application fullscreen. I've followed Enable fullscreen mode, but when showing a dialog, the navigation menu (home button, back button, etc...) displays again while the dialog is shown. Is there a way to disable this?
I made a sample app, based on the Fullscreen Activity template, and I observe the same behavior:
Dialog window is focusable by default and focusable windows leads to the exit from fullscreen mode.
For workaround you can try to set FLAG_NOT_FOCUSABLE
flag to your dialogs as described here but note that system dialogs such as ANR will still lead to an exit.