C graphics C graphics - 8 months ago 59
Android Question

How to prevent fullscreen app showing the status bar after switching back from other apps?

I used Android Studio 2.2 to create a blank fullscreen app.

enter image description here

So upon run, it looks like this

enter image description here

However, when I switch to other apps and return to this app the status bar appears again!

enter image description here

How can I retain the app in full screen mode even after switching back from other apps?


Set full screen mode in onResume() and/or onWindowFocusChanged(boolean) when the argument is true.