I have created a submenu using the manifest file. I have four text fields in my submenu. I want to know which submenu item the user clicked. I know about the switch case item.getItemId condition for the menu items. But i want to know how to check for which submenu the user clicked.
Thanks for any help
I have created a submenu using the manifest file. I have four text fields
Share
You could save the id of the submenu item to a variable. For example:
Now the variable item contains the id of the item selected.