Hi Everyone!
I've a problem: I've an application that open a menu clicking on an image calling Activity.OpenMenu. Everything works great on Android prior 5.0 , on my Android 5.0.2 (Samsung Galaxy Tab A) it doesn't appear when I click on the image.
Is it a bug or do I have to consider something more (maybe something in manifest or some other option)?
Sub Activity_Create(FirstTime As Boolean)
Activity.AddMenuItem("asdasd", "aaa")
Activity.AddMenuItem("asdasd", "aaa")
Activity.AddMenuItem("asdasd", "aaa")
End Sub
Sub Activity_Click
Activity.OpenMenu
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.AddMenuItem("asdasd", "aaa")
Activity.AddMenuItem("asdasd", "aaa")
Activity.AddMenuItem("asdasd", "aaa")
End Sub
Sub Activity_Click
Activity.OpenMenu
End Sub
yes it works! So why in my project doesn't work? I do Activity.AddMenuItem like you do in Activity_Create and I call Activity.OpenMenu in image_click event, nothing more. What could it be the problem?
I think to have found the problem: the diference between your example and my application is that in may application the Activity is set with #IncludeTitle: false. If i do the same with your example it doesn't works, exactly like my app. But calling Activity.OpenMenu in an Activity with no title works on previous Android versions, also in devices without hardware menu button.
Indeed this is the way I used to do it and all was OK, but I am afraid that this also does not work anymore in Android version 5.0 and higher. If the title (activity) bar is hidden then calling Activity.OpenMenu does NOT open any menu!
I know this 100% sure because I was getting complaints from customers that they could not open the Menu in my apps. So I did a number of experiments.