I've been working on my app for a while, using 2.52, and in the main module, this code is included in Activity_Create:
(BLUFtools is a library that has various things, including loading all the text strings into an array)
This was all working fine; and it continues to work fine on my Galaxy Nexus with stock Android after updating to 2.71
As you'd expect, the overflow menu option is at the right of the menu bar, and tapping it reveals the appropriate choices.
However, I've just had someone try to install the app on a Galaxy S3, and he doesn't get a menu. The same has been reported by a user on an Xperia Mini, with Android 2.3.4.
I've tried an experiment with the S3 user, changing those calls to
And the result, in a screenshot he sent me, was that the first two items appear in the action bar, but there's no overflow to allow access to the others. And the Xperia mini user is still without any way of accessing the options on the menu at all.
The Galaxy screenshot confirms that the text strings are being loaded ok, so that's not the issue. It's just that the menu is no longer appearing.
I can code round this, of course, adding a button on screen, but it does seem a little peculiar.
SDK levels referenced in the manifest are:
I've certainly not changed that myself.
B4X:
If BLUFtools.initLanguage(StateManager.GetSetting2("language",BLUFtools.getDeviceLanguage)) = False Then
BLUFtools.initLanguage("en")
End If
Activity.AddMenuItem(BLUFtools.BLUFstrings.Get("M_logout"),"BLUFlogout")
Activity.AddMenuItem(BLUFtools.BLUFstrings.Get("M_notify"),"NotifyOFF")
Activity.AddMenuItem(BLUFtools.BLUFstrings.Get("M_settings"),"BLUFsettings"
Activity.AddMenuItem(BLUFtools.BLUFstrings.Get("T_update"),"profileUpdate")
(BLUFtools is a library that has various things, including loading all the text strings into an array)
This was all working fine; and it continues to work fine on my Galaxy Nexus with stock Android after updating to 2.71
As you'd expect, the overflow menu option is at the right of the menu bar, and tapping it reveals the appropriate choices.
However, I've just had someone try to install the app on a Galaxy S3, and he doesn't get a menu. The same has been reported by a user on an Xperia Mini, with Android 2.3.4.
I've tried an experiment with the S3 user, changing those calls to
B4X:
Activity.AddMenuItem3(BLUFtools.BLUFstrings.Get("M_logout"),"BLUFlogout",null,true)
And the result, in a screenshot he sent me, was that the first two items appear in the action bar, but there's no overflow to allow access to the others. And the Xperia mini user is still without any way of accessing the options on the menu at all.
The Galaxy screenshot confirms that the text strings are being loaded ok, so that's not the issue. It's just that the menu is no longer appearing.
I can code round this, of course, adding a button on screen, but it does seem a little peculiar.
SDK levels referenced in the manifest are:
B4X:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
I've certainly not changed that myself.