I'm not sure whether this is down to MoSync or the Android system, but the code snippet below demonstrates what I imagine to be a common use case for maSetFullscreen().
maScreenSetOrientation(SCREEN_ORIENTATION_PORTRAIT); maScreenSetFullscreen(1); MAExtent screenDim = maGetScrSize(); // Does not receive full screen size (gets old size eg: screen-toolbar)
I am not entirely sure at what point maScreenSetFullscreen actually takes effect, but so far the only way I have found of getting it to work correctly is to listen for a custom event of EVENT_TYPE_SCREEN_CHANGED. Is there a simpler way to get it to work?
Felix