Android Question B4A B4XPages.AddMenuItem not working

cwt

Active Member
Licensed User
Longtime User
I cannot get the 3-dot menu to appear on the title bar on any B4XPage. Below is my code.

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("help_page")
    B4XPages.SetTitle(Me, Main.App_Name & " - Help And Instructional Videos")
    B4XPages.AddMenuItem(Me, "my menu selection")
End Sub

I have used the ThreePagesExample, which shows the menu 3-dots as expected, and can see no difference with my code. My code compiles without error but the 3-dot menu never will appear, regardless of what I do.

I have searched the forum but cannot find any solution.

What might I be doing wrong?
 

Sagenut

Expert
Licensed User
Longtime User
Please attach your project to check.
I just added
B4X:
B4XPages.AddMenuItem(Me, "my menu selection")
to an empty new B4XPages project and the 3 dots menù appear as expected.
 
Upvote 0

cwt

Active Member
Licensed User
Longtime User
My project connects to an api and it does not function without the api, so it would be difficult to attache the project. It is just a normal B4A B4XPages project with nothing special added.

For further testing, I used the Page3 page layout from the TreePagesExample in a B4XPages module and it still did not work - so I know the layout is not the cause of the problem. Not missing any libraries.
 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
My project connects to an api and it does not function without the api, so it would be difficult to attached the project. It is just a normal B4A B4XPages project with nothing special added.
In this case I don't know how to further help.
Did you tried a new empty project to check if it work on that condition?
 
Upvote 0

cwt

Active Member
Licensed User
Longtime User
Okay, I have stripped the project down to the bare minimum and it still fails to show the menu 3 dots on the MainPage.

Attached is the zipped file of the project.
 

Attachments

  • POS.zip
    5.1 KB · Views: 79
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Upvote 1
Top