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.

inside custom component

Java Development

Reply
Contributor
itsandybra
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold
My Carrier: Vodafone

Contact List Picker

Hi guys, I'm trying to make an app where you can select any bbm contact and send them a message from the app. I've set up the BBM SDK but the documentation is very confusing to me. All I want to do is to make a button which you click to select a contact, which pops up a window which shows all BBM contacts on the device, the user then selects a single contact and this contact is returned. How would I go about doing this?

Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Contact List Picker

If you access the UIService within the SDK, you can do exactly this by using the method startBBMChat(String).

 

I'd recommend just using the Alternative Demo sample app given within the ZIP and then you can use the clean code provided in the sample to implement this method. 



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
anditsung
Posts: 229
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: Contact List Picker

is there a way to send bbm or image programly?

Please use plain text.
Contributor
itsandybra
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold
My Carrier: Vodafone

Re: Contact List Picker

Thanks man, do you know how to make it send a pre-written message though?

Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Contact List Picker

[ Edited ]

@itsandybra

 

You cannot force BBM to send the message. You can pre-populate the message field for the user, but they have to click send. You can pre-poulate the message with the String argument.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Contact List Picker

@anditsung

 

You can send a message and images by using the sample code provided with the BBM SDK Alternative Dependency Checker sample.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Contributor
itsandybra
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold
My Carrier: Vodafone

Re: Contact List Picker

[ Edited ]

Where is this Alternative Dependency sample ? I have version 1.1 of the SDK and the only samples I have are BBMSDKDEMO, BBMSDKDemoProxy and tictactoe.

 

Nvm, just found it. 

Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Contact List Picker

http://us.blackberry.com/developers/blackberrymessenger/

 



3) Verify the version of BlackBerry Messenger installed on a BlackBerry smartphone

Download the BBM SDK Dependency Checker
(Updated July 22, 2011)



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Contributor
itsandybra
Posts: 28
Registered: ‎09-28-2011
My Device: 9700 Bold
My Carrier: Vodafone

Re: Contact List Picker

So theres no way of automatically (no user input required) sending a message without having a channel open? 

Please use plain text.
Developer
RileyGB
Posts: 282
Registered: ‎08-06-2010
My Device: Z10

Re: Contact List Picker

[ Edited ]

If you use the chatWithOthers method within the BBMBridgeImpl class, you do not need to have a channel open. However, it is impossible to send a message for a user.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.