C graphics C graphics - 1 year ago 101
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download