Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
DonaldEpig
Posts: 16
Registered: ‎02-03-2012
My Carrier: Airtel Ng

sending bbm messages using net.rim.blackberry.api.blackberrymessenger class

Hello,

Please i need help, I am trying to send a short message from an app to a specific bbm contact (something like the app share on BlackBerry App World), and i dont want to use the BBM SDK just yet, I have tried this:::

 

BlackBerryMessenger bbm = BlackBerryMessenger.getInstance();

Message msg = new Message(text, null);

if (bbm != null){
MessengerContact mcon = bbm.chooseContact();
if(mcon != null){
Session session = mcon.getSession();
session.send(msg);
}
}

 

but its not working! I will appreciate any help.

Please use plain text.
Administrator
MSohm
Posts: 13,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: sending bbm messages using net.rim.blackberry.api.blackberrymessenger class

Those APIs are no longer supported.  You'll need to use the APIs defined in the BBM SDK to integrate with BlackBerry Messenger.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.