It could be that resolutions like 400x240 are not being defined correctly by C2.
This resolution behaves strangely when running on a mobile device an apk created with C2 that uses this resolution, the problem is that sometimes occupy the full screen (with small margins only to the sides, this is normal due to the Resolution) and other times it does not occupy the full screen (then you create margins up and down and also margins the sides obviously). This problem occurs on the same mobile device.
That is, the application will run full screen or it will not, it seems a matter of luck. If the application runs full screen, then you run the risk of losing the full screen if you use "close all" on android. Then something is causing the application to run without full screen.
I've been talking to the XDK guys about this problem, they say it's probably due to the way C2 defines the view, so I'd like to check if this can be checked by the C2 team, I have made and finished a game and it is affected by this problem..
Url of thread in Intel forums:
Here you can see the correct shape with full screen and small margins on the sides:
And here once the error occurs in the loss of the full screen:
This also happens in WebView so it makes you think it's a C2 problem.
Attach a Capx
APK of the capx
Description of Capx
The file is only a blank layout ready to compile in XDK, the file uses the resolution 400x240 which is the motive of this report.
Steps to Reproduce Bug
- Run the apk on a mobile device.
- See if there is a full screen.
If there is no full screen then the full screen should be turned on and this would be the problem.
If there is a full screen, then click on "close all" at different times with the application in the background, for this you will have to open the application several times clear, then when you re-run the application it is possible that the full screen is lost and Now it is not seen in full screen.
In this video you can see how the test is initially displayed in full screen, then press "close all" and when I run the test again, the full screen is lost.
In this video the error occurs on the first attempt.
The full screen with an apk that uses the 400x240 resolution is not guaranteed, it is likely to get it or you probably will not get it.
If you get it, then when you do "close everything" on android, you will probably lose the full screen and the next time you run the app you will not be able to enjoy it in full screen.
The application or game should always preserve the full screen and run that way.
- Chrome: (YES/NO)
- FireFox: (YES/NO)
- Internet Explorer: (YES/NO)
Operating System and Service Pack
win7 64bits sp1
Construct 2 Version ID