action for oncreateoptionsmenu
<p>using the following i get the menu. but how to make any action when the menu is selected 
can anyone help me out. thanks in advance.  </p>

<pre><code> public boolean OnCreateOptionsMenu(Menu menu){
    menu.add(1, 200, 0, "snapshot");
            menu.add("more");
            menu.add("exit");
    return super.onCreateOptionsMenu(menu);
    }
</code></pre>

<p>is it possible to make the action using the following. but the layout doesnt load while using the following</p>

<pre><code>public boolean OnOptionsItemsSelected(MenuItem item){
    switch(item.getItemId()){
    case 200: setContentView(R.layout.main2);
    return true;
    }
    return super.onOptionsItemSelected(item);

}
</code></pre>
