Android Question AddMenuItem - How to tell if menu items already exist

Derek Johnson

Active Member
Licensed User
Longtime User
Is there a way to tell if items exist on the menu? Some way of counting them or knowing if the Menu object exists?

Sometimes I can't be sure in Activity_Create if there are already items present.

Derek
 

Didier9

Well-Known Member
Licensed User
Longtime User
Activity_Create starts from scratch (no pre-existing menu item), so if you have not added a menu item, it will not be there.
 
Upvote 0
Top