3 posts / 0 new
Last post
KyleHatch
KyleHatch's picture
Offline
Mobile Conjurer
Joined: 17 Dec 2011
Posts:
Full Screen Error

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.

AttachmentSize
TestApp.rar1.33 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Diego Velazquez
diegolv's picture
Offline
Mobile Wizard
Joined: 4 Oct 2010
Posts:

Hi Kyle,

I've also noticed this problem on Android HC 3.0+. This problem occurs only w/ the first screen. After all events processed, it works well.

Sam, can you open a ticket for further investigation?

Regards,

Diego

Ovidiu
ovidiu's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

Thanks for the info. I'll be looking into this.