Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
20 Views

No full screen in this resolution

Hello, I can not run full screen an android application (crosswalk is indifferent) with 854x480 resolution. I have the option "Fullscreen" activated in the tab "Build" of android

However, if the resolution is 400x240, then I get full screen.

Can I provide other information to help with this problem?.

Thanks.

Tags (2)
0 Kudos
4 Replies
Highlighted
20 Views

Juan Pablo -- we need some clarification. Are you attempting to set the resolution of your app to 854x480 and 400x240? Or do you have two different Android devices that have that screen resolution? The reason I ask is because each Android device will have a "CSS resolution" that is not the same as the device's "native resolution." If you are trying to force your app to the "native resolution" it will likely not work. Your HTML5 app will work best if it is allowed to fill the "CSS resolution" not the native resolution.

0 Kudos
Highlighted
20 Views

Paul F. (Intel) wrote:

Juan Pablo -- we need some clarification. Are you attempting to set the resolution of your app to 854x480 and 400x240? Or do you have two different Android devices that have that screen resolution? The reason I ask is because each Android device will have a "CSS resolution" that is not the same as the device's "native resolution." If you are trying to force your app to the "native resolution" it will likely not work. Your HTML5 app will work best if it is allowed to fill the "CSS resolution" not the native resolution.

Hi, I hope I understood correctly, I'm going with my answer.
I want to set the resolution of the application in 854x480 and full screen, but the full screen is not achieved with that resolution.

My device is a galaxy 6S with resolution 2560 x 1440 (Quad HD)

You can see that the blue zone does not occupy the entire screen.

I should investigate on CSS resolution, I'm not sure what it really is and if my problem has anything to do with it.

Can I provide any other information?

Excuse my English please.

0 Kudos
Highlighted
20 Views

Juan Pablo -- see this table > http://mydevice.io/devices/ < and you'll see that the CSS pixels are not the same as the native resolution of your device's screen. The Cordova webview is not designed to work in the native resolution, it will work in the CSS resolution. In general, you should not be attempting to force the resolution of your app, since there are so many different screen resolutions, as can be seen by the table.

Point the browser in S6 to this page > http://mydevice.io/ < to get a better picture of what I mean. Some useful discussion on this SO post, as well > http://stackoverflow.com/questions/20511028/screen-resolution-on-a-phonegap-app < and this doc > https://developer.chrome.com/multidevice/webview/pixelperfect < as well as this google search.

0 Kudos
Highlighted
20 Views

Paul F. (Intel) wrote:

Juan Pablo -- see this table > http://mydevice.io/devices/ < and you'll see that the CSS pixels are not the same as the native resolution of your device's screen. The Cordova webview is not designed to work in the native resolution, it will work in the CSS resolution. In general, you should not be attempting to force the resolution of your app, since there are so many different screen resolutions, as can be seen by the table.

Point the browser in S6 to this page > http://mydevice.io/ < to get a better picture of what I mean. Some useful discussion on this SO post, as well > http://stackoverflow.com/questions/20511028/screen-resolution-on-a-phone... < and this doc > https://developer.chrome.com/multidevice/webview/pixelperfect < as well as this google search.

Thanks for the information and for your service, I will review these threads.

0 Kudos