Hi,
I need to create a menu when the Menu button is pressed, so there is a condition will run before creating the menu
the code
What I want is to change the Text for the menu before it appear
I need to create a menu when the Menu button is pressed, so there is a condition will run before creating the menu
the code
B4X:
If KeyCode=KeyCodes.KEYCODE_MENU Then
If sock.connected=True Then Activity.AddMenuItem ("Disconnect","CloseConnection")
Else
Activity.AddMenuItem ("Connect","ConnectToServer")
End If
End If
What I want is to change the Text for the menu before it appear