Dear All,
I have a simple app that is mostly native-code OpenGL with about a
page of Java to interface to it. On my new Galaxy Tab, it creates a
window that is about 480x800 pixels, while on other devices (including
an AC100 with a larger screen) it fills the whole screen.
Searching the web, it seems that this affects many existing apps when
they are run on this device, and there is plenty of end-user advice
about how to make apps fill the screen. But I've failed to find any
advice about how I should do it from within the app.
My current Java code is not much more than this:
public class FooActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
gl_view = new FooGLSurfaceView(this);
setContentView(gl_view);
}
......
}
My impression is that that will generally create a full-screen view on
devices other than the Galaxy Tab.
I've experimented with passing a
ViewGroup.LayoutParams(FILL_PARENT,FILL_PARENT) as a second parameter
to setContentView, but that doesn't change anything. From what I
understand of the docs, I should perhaps be changing the window
properties to ask for full-screen mode, but it's not obvious to me how
to do that; how do I get the current window?
Can anyone help?
Many thanks, Phil.
--
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