android - Check if Samsung S8 is in full screen mode -


is there way check if device in full screen mode in new samsung s8? tried solutions added post returns true. detect soft navigation bar availability in android device progmatically?

i can correct visibility listening onsystemuivisibilitychangelistener shown below:

private class myonsystemuivisibilitychangelistener implements view.onsystemuivisibilitychangelistener {     @override     public void onsystemuivisibilitychange(int visibility) {         if (visibility == view.system_ui_flag_hide_navigation) {            // full screen mode         } else {            // not full screen mode         }     } } 

the above method works when user triggers full screen pressing on soft navigation button need check if device in full screen mode when entered app.

just call on view view.getsystemuivisibility() , compare same int


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -