Hide screen buttons in Android phonegap application

I made an Android application using phonegap and I wanted to make it really full screen and hide / remove buttons at the bottom of the screen (back button, home button and application switch button). I know this is possible because the BBC iPlayer application does this when you are watching a video, but I do not know if this is possible through a telephone conversation. Does anyone know if this is the case, and if so, can you point me in the right direction? //>

0
source share
1 answer

Impossible - I did not use the BBC Sport app correctly, but I think that it uses the default player for the device (which is an Android player), and thus this is the only time you want when you want full screen mode.

Android uses these buttons - otherwise, how can you exit the application? This is similar to the home button on iOS - you need it to work on the device.

There are event listeners that you can use for the back button and menu buttons that you can override by default for:

document.addEventListener('backbutton', function () {
    // do something when back is pressed
}, false);

document.addEventListener('menubutton', function () {
    // do something when menu is pressed
}, false);

Something about it. Think about Samsung Galaxy phones - these are hard buttons, so you cannot “hide” them like you can on Android.

0
source

All Articles