BlackBerry Forums Support Community
              

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

Please Login to Remove!

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.
Offline  
Old 09-10-2009, 05:14 AM   #2
s.selva
New Member
 
s.selva's Avatar
 
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Posts: 8
Default

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

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..
Offline  
Old 09-10-2009, 07:29 AM   #5
s.selva
New Member
 
s.selva's Avatar
 
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Posts: 8
Lightbulb

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...
Offline  
Old 09-10-2009, 08:25 AM   #6
s.selva
New Member
 
s.selva's Avatar
 
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Posts: 8
Default

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...
Offline  
Old 09-11-2009, 03:01 AM   #7
sonia1986
Knows Where the Search Button Is
 
Join Date: Jun 2009
Model: 7110
PIN: N/A
Carrier: engg.
Posts: 19
Default

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)
Offline  
Old 09-11-2009, 04:24 AM   #8
s.selva
New Member
 
s.selva's Avatar
 
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Posts: 8
Exclamation

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...
Offline  
Old 09-18-2009, 02:06 AM   #9
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
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..
Offline  
Closed Thread


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Sylvania Quicktronic Pro Series Ballast QHE 2X59T8/UNV ISN-SC picture

Sylvania Quicktronic Pro Series Ballast QHE 2X59T8/UNV ISN-SC

$10.00



Magnetek M70MLTLC3M-500K Magnetic M-98 Ballast Replacement Kit 70W -NIB picture

Magnetek M70MLTLC3M-500K Magnetic M-98 Ballast Replacement Kit 70W -NIB

$19.99



Triad B232IUNVHP-N 2-Lamp Outdoor Electronic Ballast T8 / ES 120-277V 60Hz picture

Triad B232IUNVHP-N 2-Lamp Outdoor Electronic Ballast T8 / ES 120-277V 60Hz

$20.00



10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v picture

10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v

$108.99



QHE 4X32T8/UNV ISH-SC Sylvania 51347 4-Lamp T8 Instant Start Fluorescent Ballast picture

QHE 4X32T8/UNV ISH-SC Sylvania 51347 4-Lamp T8 Instant Start Fluorescent Ballast

$10.79







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.