Hi. Just started with MoSync and i was testing my app on my android to see how it looks, looked great.
However i then used maScreenSetFullscreen(1) to make it full screen, now all i get is a black screen. I've attached the cpp and h for anyone who wants to take a look at what i did in detail but basically...
MyMoblet::MyMoblet() {
Engine& engine = Engine::getSingleton();
maScreenStateEventsOn();
maScreenSetOrientation(SCREEN_ORIENTATION_PORTRAIT); //orientation
maScreenSetFullscreen(1);//Make full screen
MAExtent screenSize = maGetScrSize();
scrWidth = EXTENT_X(screenSize);
scrHeight = EXTENT_Y(screenSize);
mainScreen = new MainScreen();
mainScreen->show();
}
extern "C" int MAMain() {
moblet = new MyMoblet();
MyMoblet::run(moblet);
return 0;
}
this is the crux of what i did, with an image in my main screen to display. Works fine is maScreenSetFullScreen(0) is used, but not full screen.
Any help appreciated.
Kyle.
PS: Didn't know if this was for the bug section of the forum or tutorial, as i'm new i went for tutorial.
| Attachment | Size |
|---|---|
| TestApp.rar | 1.33 KB |