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


US Notebook with Lock - Vintage Leather Journal - Handmade Cotton Paper Diary picture

US Notebook with Lock - Vintage Leather Journal - Handmade Cotton Paper Diary

$26.99



Vintage Manual Royal Typewriter Spool Ribbon Black Ink for the Portable machines picture

Vintage Manual Royal Typewriter Spool Ribbon Black Ink for the Portable machines

$7.00



 Vintage 4

Vintage 4" silicon wafer with Microprocessors - From 1980s and Case is Included

$28.50



Vintage 'EXACT'  4

Vintage 'EXACT' 4" Machinist Level - Brand New old stock #96-4 ***NOS***

$50.00



Vintage Leather Bound Journal Handmade Diary with 220 Antique Pages Notebook picture

Vintage Leather Bound Journal Handmade Diary with 220 Antique Pages Notebook

$17.99



Lot of 5 Vintage Resistor 100K Ohm 1W Watt 10% NOS Carbon Comp TESTED Axial USA picture

Lot of 5 Vintage Resistor 100K Ohm 1W Watt 10% NOS Carbon Comp TESTED Axial USA

$1.19







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