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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 1
Registered: ‎12-07-2009
My Device: Not Specified

Mobile to Mobile Socket Programming

Hi I am trying to develop an application for the blackberry that i can connect one phone to another and transfer data between the two using a TCP or UDP connection.  I don't believe the blackberry allow direct connection between phone over the carriers private network.

 

So are there any examples on how you can do it over the internet such as creating a php or perl script that will bridge the connection between the phone to transfer data?

 

Or if there is another way to do it not using an internet socket to bridge the connect would be helpful too.  I would have the individuals number on the phone too, so we would know where the data is suppose to be going to.

 

And I cannot do this over the WiFi or Bluetooth because the data needs to be transfered where WiFi access is not in range.

 

Any help would be very much appriciated!

 

Thanks

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Mobile to Mobile Socket Programming

You might consider using BlackberryMessenger as your device-to-device transport.

 

The TicTacToe demo shipping with the JDE illustrates this by employing BBM to send moves to the other phone for a two-player game.

 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Mobile to Mobile Socket Programming

I agree with RexDoug's suggestion:

 

Also:

 

"don't believe the blackberry allow direct connection between phone over the carriers private network"

I am not aware of how this could be done either, except via WiFi, though i am not familiar with UDP.  .

 

"So are there any examples on how you can do it over the internet"

Not that I am aware of.

 

"I would have the individuals number on the phone too"

SMS?  Email?  Not serious suggestions, just making sure you had thought of them. 

Highlighted
Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Mobile to Mobile Socket Programming

 


kevins963 wrote:

Hi I am trying to develop an application for the blackberry that i can connect one phone to another and transfer data between the two using a TCP or UDP connection.  I don't believe the blackberry allow direct connection between phone over the carriers private network.

 

So are there any examples on how you can do it over the internet such as creating a php or perl script that will bridge the connection between the phone to transfer data?

 

Or if there is another way to do it not using an internet socket to bridge the connect would be helpful too.  I would have the individuals number on the phone too, so we would know where the data is suppose to be going to.

 

And I cannot do this over the WiFi or Bluetooth because the data needs to be transfered where WiFi access is not in range.

 

Any help would be very much appriciated!

 

Thanks


 

I only know how to do this in UDP. If you require reliable data transfer, you have do that on top of UDP. Kind of like TCP over UDP.