While trying to get a GLES demo running full screen I came across:
http://groups.google.com/group/android-developers/browse_thread/thread/ffa17f5ce2f5cbfe/c3dd2e21d8a5fde3?lnk=gst&q=full+screen#c3dd2e21d8a5fde3
which is out of date, the correct code now seems to be:
// We don't need a title either.
requestWindowFeature(Window.FEATURE_NO_TITLE);
// remove status bar
int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN;
getWindow().setFlags(flags, flags);
I noticed there are some other interesting WindowManager.LayoutParams
flags:
WindowManager.LayoutParams.MEMORY_TYPE_GPU
WindowManager.LayoutParams.MEMORY_TYPE_PUSH_BUFFERS
WindowManager.LayoutParams.MEMORY_TYPE_HARDWARE
all but WindowManager.LayoutParams.MEMORY_TYPE_HARDWARE seem to
prevent
the app from drawing anything, is there a detailed description of what
said flags actually do?
- Ed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---