I am trying to implement this but I am getting stuck on the following.
I am trying to have the same actionbar with menu items in all activities. But im not sure how to have the eventname_click trigger a sub written in the class.
My code:
B4X:
Public Sub Initialize(activity As Activity)
AB.Initialize("")
activity.AddMenuItem3("Add Timer", "addtimer", Null, False)
activity.AddMenuItem3("Set Mac Id", "mac", Null, False)
activity.AddMenuItem3("Set Serial Number", "serial", Null, False)
End Sub
When add timer is clicked its looking for addtime_click in the actual activity not in the class.