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
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
2 matches
Mail list logo