BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
sonia1986 Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Default integrate my RIM app with BB - 09-10-2009, 05:55 AM

Hello
How to integrated RIM app with BlackBerry Address Book.For example:-send an SMS message by selecting a contact, pressing the menu button, and choosing to SMS via XYZ app.
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
s.selva Offline
New Member
 
s.selva's Avatar
 
Posts: 8
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Default 09-10-2009, 06:14 AM

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
        }
}


Enseigne l'ignorant et écoute le savant: Tu apprendras ce que tu ignorais, Et tu te rappelleras ce que tu savais...
   
Reply With Quote
  (#3 (permalink)) Old
sonia1986 Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Default 09-10-2009, 06:26 AM

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..
   
Reply With Quote
  (#4 (permalink)) Old
sonia1986 Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Default 09-10-2009, 07:32 AM

Hello
I think MenuItem is used to create an Menu in my own app but i want name of my app(eg. Send SMS via my App) in native address Book of BB handset.Is it possible?
Plz reply soon..
   
Reply With Quote
  (#5 (permalink)) Old
s.selva Offline
New Member
 
s.selva's Avatar
 
Posts: 8
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Lightbulb 09-10-2009, 08:29 AM

i think that you can add a MenuItem in the differents menus of the phone :

Code:
// In AddressBook list
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST, new SendSMS(30)
);
// In AddressBook card
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_ADDRESSCARD_VIEW, new SendSMS(30)
);
// In the call logs
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_PHONE, new SendSMS(30)
);


Enseigne l'ignorant et écoute le savant: Tu apprendras ce que tu ignorais, Et tu te rappelleras ce que tu savais...
   
Reply With Quote
  (#6 (permalink)) Old
s.selva Offline
New Member
 
s.selva's Avatar
 
Posts: 8
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Default 09-10-2009, 09:25 AM

You can find all functions of RIM library into the JDE (Help > API reference).


Enseigne l'ignorant et écoute le savant: Tu apprendras ce que tu ignorais, Et tu te rappelleras ce que tu savais...
   
Reply With Quote
  (#7 (permalink)) Old
sonia1986 Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Default 09-11-2009, 04:01 AM

Thanks a lot
i send you an image in that full menu window i need name of my BB java app..is it possible?
Attached Images
File Type: jpg 8100.jpg (119.4 KB, 7 views)
   
Reply With Quote
  (#8 (permalink)) Old
s.selva Offline
New Member
 
s.selva's Avatar
 
Posts: 8
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Exclamation 09-11-2009, 05:24 AM

Quote:
Originally Posted by s.selva View Post
i think that you can add a MenuItem in the differents menus of the phone :

Code:
// In AddressBook list
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST, new SendSMS(30)
);
// In AddressBook card
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_ADDRESSCARD_VIEW, new SendSMS(30)
);
// In the call logs
ApplicationMenuItemRepository.getInstance().addMenuItem(
            ApplicationMenuItemRepository.MENUITEM_PHONE, new SendSMS(30)
);
I give it to you.


Enseigne l'ignorant et écoute le savant: Tu apprendras ce que tu ignorais, Et tu te rappelleras ce que tu savais...
   
Reply With Quote
  (#9 (permalink)) Old
sonia1986 Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Default 09-18-2009, 03:06 AM

Quote:
Originally Posted by s.selva View Post
I give it to you.
Hello..thanks s.selva..i did it...I am able to append menu in contact book but when i clicked on that its unable to open my application...can u plz help me how to invoke my app..
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.