Android Question ActionBar severe problem

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

  1. magi6162

    magi6162 Active Member Licensed User

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

    what happened

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

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

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

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

    magi6162 Active Member Licensed User

    I solved. I put a sub different for each menu item:D