Android Question Activity.AddMenuItem work fine in Kitkat but Lollipop?

Daniel-White

Active Member
Licensed User
Longtime User
Hi folks.

I have a big mystery situation, that code work great in Kitkat, but in phones with Lollipop does not work. ??????????????

I mean when the user press this button in Kitktat the menu appear, work fine.





But in Lollipop and upper versions of android does not work.




B4X:
Activity.AddMenuItem("Limpiar Mapa","BorrarAlertasdelMapa")   
'    Activity.AddMenuItem("Automático","Automatico")      
'    Activity.AddMenuItem(Zona0,"ZoomXzona0")
'    Activity.AddMenuItem(Zona1,"ZoomXzona1")
'    Activity.AddMenuItem(Zona2,"ZoomXzona2")
'    Activity.AddMenuItem(Zona3,"ZoomXzona3")
'    Activity.AddMenuItem(Zona4,"ZoomXzona4")
'    Activity.AddMenuItem(Zona5,"ZoomXzona5")
'    Activity.AddMenuItem(Zona6,"ZoomXzona6")
 

susu

Well-Known Member
Licensed User
Longtime User
In my LG (and many) phones, when you hold recent button for a while, it will act as menu button.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…