Android Question add parameter menu

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi
I need to add a menu when I call I open an activity from a function, such as:

B4X:
CallSubDelayed2(Activityname, FunctionExample)


Sub FunctionExample
Activity.AddMenuItem3(......
end sub

But it is not created !?

Can anyone tell me how can I do it?

thank you
 

DonManfred

Expert
Licensed User
Longtime User
FunctionSample will add a menuentry in the active activity. NOT in another activity
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi Manfred

but it is the same activity! Only it is not added in the Activity_Create call but in the function with which I open the activity itself.

I hope I was clear!
 
Upvote 0
Top