An good workaround is described in the docs, under User Interface,
Creating Menus.  This will allow me to implement dynamic menus in
TabActivity.

On Android 2.3 and lower, the system calls onPrepareOptionsMenu() each
time the user opens the Options Menu.

On Android 3.0 and higher, you must call invalidateOptionsMenu() when
you want to update the menu, because the menu is always open. The
system will then call onPrepareOptionsMenu() so you can update the
menu items.


Despite this, the behavior of onCreateOptionMenu on honeycomb is still
not what I expected.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to