Android Question Secondary Sliding menu Open Event

jimmyF

Active Member
Licensed User
Longtime User
B4X:
Dim jo As JavaObject = sm
  Dim event As Object = jo.CreateEventFromUI("com.jeremyfeinstein.slidingmenu.lib.SlidingMenu$OnOpenListener", "Open", Null)
  jo.RunMethod("setOnOpenListener", Array(event))
End Sub

Sub Open_Event (MethodName As String, Args() As Object) As Object
   Log("Opened!")
End Sub

With @Erel's code above I can get the Open event for the main sliding menu which works great.
I tried to assign sm.SecondaryMenu in the java code but it simply gives me an exception and I am not
familiar enough with java to dig any deeper.

Is their a similar event that we can create for the Secondary menu?
 
Top