Removing Soft Button

mantracourt

Member
Licensed User
Longtime User
I have just got a Nexus 7 to develop on and this has buttons on screen and no physical buttons (Home, Menu etc).
I think the answer is NO but is there any way to remove these?

Thank you
 

claudio

Member
Licensed User
Longtime User
I have just got a Nexus 7 to develop on and this has buttons on screen and no physical buttons (Home, Menu etc).
I think the answer is NO but is there any way to remove these?

Thank you

Maybe you can intercept KeyCodes with the KeyPress event:

B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean
    If KeyCode = KeyCodes.KEYCODE_BACK Then 
        Return False
    Else 
        Return True
    End If 
End Sub

Return false let exit from Activity

But HOME button doesn't belong to your application.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
I think you can't remove them. But you can search for 'android kiosk' mode here, it provides a way to quickly restart your app when user presses 'home'.
 
Upvote 0

mantracourt

Member
Licensed User
Longtime User
Thanks

Thank you for those suggestions.
I am looking to use the Nexus 7 as a dedicated hardware base for some products for my company. i.e. only our own software will run on it.
I am aware of the suggested options and can create a kiosk type app that even the Home button deos not affect but those buttons remain on the screen wasting space and offering the user functions that we do not react to.

Not strictlyBasic4Android but if anyone knows of a way of removing these through a rooted device (or even allowing them to be removed via software) I am sure many people would benefit from it.

Regards
 
Upvote 0
Top