Roberto P. Well-Known Member Licensed User Longtime User Mar 16, 2016 #1 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
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 Mar 16, 2016 #2 FunctionSample will add a menuentry in the active activity. NOT in another activity Upvote 0
Roberto P. Well-Known Member Licensed User Longtime User Mar 16, 2016 #3 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
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!
DonManfred Expert Licensed User Longtime User Mar 16, 2016 #4 The Menuitems must be added before the activity_resume is raised i guess. Maybe that is the problem Upvote 0