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
Developer
abhi007tyagi
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook

How to integrate existing java app with BBM ?

Hi All,

 

I have an app that I want to integrate with BBM.

following features I want to implement in my app:

1. can be open from BBM

2. can save/send data (from my app) to BBM

 

Please let me know how to start integrating and test on emulator.

 

Thanks

Abhinav Tyagi

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to integrate existing java app with BBM ?

i would suggest to read the bbm developer guide, your usecases are handled there.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
meera_developer
Posts: 30
Registered: ‎02-02-2012
My Device: 9780

Re: How to integrate existing java app with BBM ?

First you need to register your app with BBMPlatformApplication. This is created by a unique 36 digit UID. On successfull registration, If the connection with BB is allowed, we can coonect with BBm using different API's privided by BBM plugins.

 

Thanks and Regards,

 meera

 

Developer
abhi007tyagi
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook

Re: How to integrate existing java app with BBM ?

thanks,

 

but I have not even coded yet.

Following Simon's comment, I have created environment for BBM and able to communicate b/w simulators...

 

I need code example to integrate BBM in my App.

I want to send image file from my app to BBM contact list.

 

Abhinav Tyagi

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to integrate existing java app with BBM ?

I believe the sample supplied with the BBM SDK, called SDKDemo, demonstrates this.  Have a look. 

Developer
abhi007tyagi
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook

Re: How to integrate existing java app with BBM ?

Not Able to launch... app simulator !!!

 

both demo app and my app

 

I am able to send msg via BBM b/t sim1 and sim2 and they both are open when I am launching demo app and my app, but coming on simulators

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to integrate existing java app with BBM ?

"Not Able to launch... app simulator !!!"

 

You mean you can't stat the SImulator or can't start your app?

 

I pressume your app, so what is the error message?

Developer
abhi007tyagi
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook

Re: How to integrate existing java app with BBM ?

I am now able to open my app in simulator.

As soon as I open it ask me to connect to BBM.

After connecting, I can use my app.

 

But there is an issue !!

as soon as I open image file and select it to send via BBM,

I get this screen

 

 

It shows empty list !!!.

I have seen this error issue in some post where it is required that all those using same app would be coming in the list.

I have added my app on another simulator. Why I am not seeing it here in the list.

 

Is this list specific to Simulator testing or is it fetching contact from my ID as I had registered via internet on my Simulator?

 

I am also not able to see any search button or OK button to move forward. Only cancel is coming.

 

Need serious help now !

 

Thanks

Abhinav Tyagi

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to integrate existing java app with BBM ?

It can take a while for the other SImaultor to register, in other words, for BBM on one Simualtor to be told that the other Simulator has the same Application.  Yo have to have added the other Simulator as a contact.  It seems to help if you establish a BBM chat seesino with the other SImualtor too.  But I seem to remember it can take a bit of time for the two BBM's to sync up.

 

Note that both Sims must be ones running BBM from the BBM download site and run exactly as they describe.  But you can mix them up, in other words you can run one Curve Simulator and the other Torch Sim a,d the two will talk. 

Developer
abhi007tyagi
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook

Re: How to integrate existing java app with BBM ?

I can chat b/t the two easily...
but can't see other listed in my contact when I open my app.

here are the Q. I need ans
1. Why I am not seeing other simulator listed in my contact from my app when I am able to chat b/w the two using normal BBM app on simulator?
2. Why it always first connect to and verify to BBM when my app starts.
3. Once testing is complete and my app is ready to submit, do I need to do any change regarding UID generation ?
4. UID required when when app is commercially used ?
5. How to test if I don't have BB handheld or BBM service on phone ?

Thanks
Abhinav tyagi
Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot