Hi Erel
Thanks for the response - Guess I should not have mentioned X-Platform - it has thrown you in the wrong direction (but fully agree with what you say).
This currently only relates to B4A code (not B4i).
I initialize the helper class using some like classname.initialize(Activity)
Then in the helper class initialize is declared something like
Public Sub Initialize (parent As B4XView)
parent.LoadLayout("fromToDisplay")
End Sub
' What I would like to is add menu options to the activity but put the code in the helper class i.e.
Public Sub Initialize (parent As B4XView)
parent.LoadLayout("fromToDisplay")
' Tried this by it don't work
parent.AddMenuItem("Option description", "HandlerName")
' Plus some menu options
End Sub
IMPORTANT: I have to say that I am a BIG supporter of your attempts to support X-Platform - In my opinion, if you are writing any application for multiple platforms - it is a must to use B4X.
Very kind regards
Dave