Android Question ActionBar severe problem

Discussion in 'Android Questions' started by magi6162, Jul 7, 2015.

  1. magi6162

    magi6162 Well-Known Member Licensed User

    When click on action bar Sender = null
    Until yesterday run ok

    what happened

    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        Activity.LoadLayout("Mit")

        
    Activity.AddMenuItem3("Importa KML","AB",LoadBitmap(File.DirAssets, "ic_action_import.png"),True)
        
    Activity.AddMenuItem3("Opzioni","AB",LoadBitmap(File.DirAssets, "opzioni.png"),True)

        SAB.Initialize(
    "SAB")
        SAB.Icon = 
    LoadBitmap(File.DirAssets, "b_web_advertising_256.png")
        SAB.Subtitle = 
    "Versione: " & versione
        SAB.NavigationMode = SAB.NAVIGATION_MODE_STANDARD
        SAB.ShowUpIndicator = 
    True
       
    .......
    End Sub



    Sub AB_Click
        
    Dim s As String
        
    Dim sf As StringFunctions
        sf.Initialize
        s = 
    Sender     -------------  s = null  ?????????
        
    Select Case s
            
    Case "Opzioni"
            
    Case "Importa KML"
        
    End Select
    End Sub
     
  2. magi6162

    magi6162 Well-Known Member Licensed User

    I solved. I put a sub different for each menu item:D
     
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