tags:

views:

54

answers:

2

how to apply on click action on menu in android?

+1  A: 
public boolean onOptionsItemSelected(Menu.Item item) {
    // here you can do a switch on item ID, to apply different actions for different menu items
    return true;
}
David Hedlund
thanku very much.its working
deepthi
A: 

You could try implementing onMenuItemClickListener to the MenuItem selected.

See the doc of MenuItem

ccheneson
thnxs for ur help.Its working
deepthi