tags:

views:

16

answers:

1

heeloz, i want to add mymenuitem on smssending menulist, how could i do that plz help me. send me the code thnaks a lot..

A: 

You just override the makeMenu method and add whatever you want.

protected void makeMenu(Menu menu, int instance) {
    menu.add(getExitItem(0,0));    
}

public MenuItem getExitItem(int ordinal, int priority) {
    return new MenuItem("Close", ordinal, priority) {
        public void run() {
            System.exit(0);
        }
    };
}
Tejaswi Yerukalapudi