title: Android, trigger Activity on menu action
body: <p>I'm new to android and I'm trying to figure out if there is a best practice in menu handling. </p>
  
  <p>Well, here is the thing:</p>
  
  <p>I have created a <code>menu.xml</code> file (within <code>res/menu</code>), <code>Main.java</code> handle the menu action with a <code>switch case</code>.</p>
  
  <p>I'm wondering what is the best way to run appropriate task when an action is performed on a menu item:</p>
  
  <ul>
  <li>Use an intent and trigger the corresponding activity</li>
  <li>define everything (which could be a lot of code) within the case corresponding to this menu item.</li>
  </ul>