Hi, can somebody help me to have my Activity.AddMenuItem showing? I have read questions about it that it cannot be seen in android 4+. Is there still a way to fix this or replace the addmenuitem?
I've just started using a toolbar in stead as set out in this tutorial https://www.b4x.com/android/forum/threads/material-design-3-using-a-toolbar-as-actionbar.49053/
From what I understand, this is the recognised way of using menus in newer versions of android. It might be best to start from the first tutorial though as there are some resources that are required. There is also a way to make it work in older devices.
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
I can't remember...@freedom2000 Thanks for posting your code, but it would be helpful if you pointed out what specifically you added or changed in the manifest.