[android-developers] Re: Menus for tabs do not show in action bar

2011-04-28 Thread Steve
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

[android-developers] Re: Menus for tabs do not show in action bar

2011-04-28 Thread Zsolt Vasvari
Here's the class (basically) I use to safely call invalidateOptionsMenu() on Honeycomb or pre-Honeycomb: public class SDKLevel11TabletBridge { private static SDKLevel11TabletInterface intf; private static boolean intfLoaded; private interface