I would also like to know the answer for this.
You'd see no change at all if you called the java method invalidateOptionsMenu():
- Calling invalidateOptionsMenu() invalidates the options menu - any currently created options menu is discarded.
- When the activity next needs to display the options menu, the activity will create a new options menu.
- The new options menu will be created using all the MenuItems previously added.
So you can force the activity to rebuild it's options menu but unless you can access the 'already added' MenuItems and clear them or remove one or more, then the rebuilt options menu will be identical to the invalidated options menu.
If, from b4a, you could access and modify the already added MenuItems then you could invalidate the options menu, modify the MenuItems and then when the activity rebuilds the options menu it would reflect the modified MenuItems.
Hope i explained that clearly?
Martin.