mardi 22 septembre 2015

how to go full-screen on android with no status bar and renderMode set to direct?

I'm building an AIR->android app for a retail kiosk. We are going to hide the 'status bar' so the app is full-screen and doesn't have the soft button bar (it will also be locked into kiosk mode using a 3rd party app).

When I publish and run my app on our device with the status bar hidden the flash stage colour is visible where the original status bar was. This space should be filled with the app contents (full-screen images etc) but the 68px space which originally contained the bar is just solid white (or whatever backgroundColor the stage is set to)

After a lot of trial and error I've nailed this down to the fact that I have direct set in the app descriptor xml. If I remove this the app contents fill the screen, but obviously I don't have access to the GPU accelerated rendering system.

I'm assuming this is something to do with AIR asking the device's hardware of it's resolution, which it returns as 1920x1032 even though the actual number of pixels is 1920x1080. So under the hood AIR is only setting up a renderable window of 1920x1032 (when in renderMode>direct).

Does anyone know of a way of enabling true full-screen when in renderMode>direct ?

Aucun commentaire:

Enregistrer un commentaire