Hello, I'm developing an app to 5800 using eSWT. I want to know howto set fullscreen mode (remove the menu bar at the right of the screen) using landscale orientation. Thanks.
Hello, I'm developing an app to 5800 using eSWT. I want to know howto set fullscreen mode (remove the menu bar at the right of the screen) using landscale orientation. Thanks.
Hi,
For full screen check out the MobileShell. This should work for both Landscape and Portrait
http://library.forum.nokia.com/topic...bileShell.html
If you are trying to fix the orientation to a particular one you can use Screen
http://library.forum.nokia.com/topic...le/Screen.html
--
Gorkem
Thanks!
I did this to set fullscreen:
mainShell = new MobileShell(display);
mainShell.setFullScreenMode(true);
And this to set landscale:
mainShell.open();
Screen screen = getActiveScreen();
screen.setOrientation(Screen.LANDSCAPE);
(...)
}
private Screen getActiveScreen() {
Screen[] screens = MobileDevice.getMobileDevice().getScreens();
for (int i = 0; i < screens.length; i++) {
if (screens[i].isActive()) {
return screens[i];
}
}
return null;
}