View Single Post
Old 09-10-2009, 05:26 AM   #3
sonia1986
Knows Where the Search Button Is
 
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Posts: 19
Default

Quote:
Originally Posted by s.selva View Post
You can add a menuItem into the SMS editor menu and call the function you want to do how to send the SMS :

Code:
public void registerMenu(){
    ApplicationMenuItemRepository.getInstance().addMenuItem(
    ApplicationMenuItemRepository.MENUITEM_SMS_EDIT, new SendSMS(30)
    );
}

[...]

private class SendSMS extends ApplicationMenuItem{
        
        public SendSMS(int order){
            super(order);
        }
        
        public String toString(){
            return "Send SMS Like Me";    
        }

        public Object run(Object context) {
            // what you want to do
        }
}
Hii
Thanks s.selva!
cud u plz send me links related to that bcoz i m new in RIM BB Api.
I was working with J2me first time i m developing for BB handset..
Offline   Reply With Quote