I am working on a game and would like to have the full screen to itself.
Did anyone found a way to make the app go full screen on Android Honeycomb preview emulator?
I am working on a game and would like to have the full screen to itself.
Did anyone found a way to make the app go full screen on Android Honeycomb preview emulator?
Two things I can add:
My ListActivity hides the status bar, but when it pops up a progress dialog the status bar shows for as long as the progress dialog is displayed. The following reduced it to a brief flash, and applies to all dialogs done via "showDialog". I can't get rid of it entirely yet.
CAVEAT: "onPrepareDialog" is deprecated...
As shown in the snippet above, you can get the root view's ID without defining an explicit ID in the parent layout in the xml layout file, which makes this a one-file edit.
Lights out mode has changed in the full 3.0 SDK. You can now enter lights out mode as follows:
You can also set a listener on the view to be notified on changes to the system bar's visibility.
In prior versions of Android you can set the application to a full screen mode using this line in the manifest:
I can't say for sure that works in 2.3, since I haven't done anything with 2.3 yet.
Secondly, I'm not too familiar with the term "lights out mode" but you can adjust the screen brightness using the
WindowManager.LayoutParams
class and thescreenBrightness
field.