We can detect if the android mobile device has soft keys or hard keys by this code:
The Question is about the menu key (not home nor back keys):
How can we specify the location of the menu key? (soft or hard menu key) Is it in upper left, upper right, lower left or lower right corner ?
B4X:
Sub HasPermanentMenuKey As Boolean
Dim r As Reflector
If r.GetStaticField("android.os.Build$VERSION", "SDK_INT") >= 14 Then
r.Target = r.RunStaticMethod("android.view.ViewConfiguration", "get", _
Array As Object(r.GetContext), Array As String("android.content.Context"))
Return r.RunMethod("hasPermanentMenuKey")
End If
Return True
End Sub
The Question is about the menu key (not home nor back keys):
How can we specify the location of the menu key? (soft or hard menu key) Is it in upper left, upper right, lower left or lower right corner ?