Android Question Activity menu. How ?

Discussion in 'Android Questions' started by MitchBu, May 5, 2019.

  1. MitchBu

    MitchBu Active Member Licensed User

    I tend to use this forum as source for programming. I did find the views list with all their events and properties, but could not find a full list of commands and syntax.

    I found this to add options to the activity menu, and it works just fine in Activity_create :

    Code:
    Activity.AddMenuItem("Crash""bt1")
    Activity.AddMenuItem("Documents""bt2")
    Now I am at a loss to catch menu actions. I read many posts, but all are kind of difficult to make out. There is a reference to MenuBar1, but since I never created it, the action does not fire.

    I will appreciate some help.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Use the built-in help:

    menu.gif
     
    angel_ likes this.
  3. MitchBu

    MitchBu Active Member Licensed User

    Great. I will try not to bother you with basic programming.

    Thank you.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It was actually a very important question. While helping you I found that the core library methods are missing from the online documentation since an update done last week.

    It is fixed. Now when you search for https://www.b4x.com/search?query=Activity.AddMenuItem the formal documentation will appear before the reults.
     
  5. MitchBu

    MitchBu Active Member Licensed User

    This is great. I did not anticipate it to be so simple :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice