Hello, I'm new to android and I'm trying to figure out if there is a best practise in menu handling. Well, here is the thing:
I have created a menu.xml file (wihtin res/menu), Main.java handle the menu action with a switch case.
I'm wondering what is the best way to run appropriate task when an action is performed on a menu item:
- Use an intent and trigger the corresponding activity
- define everything (which could be a lot of code) within the case corresponding to this menu item.
thanks a lot for your help, Luc