title: Blackberry Bluetooth sample program for communication between two mobile devices
body: <p>I am a blackberry developer and do want to code to transmit and receive information between two devices using bluetooth .</p>
  
  <p><a href="https://github.com/blackberry/JDE-Samples/tree/master/com/rim/samples/device/bluetooth/bluetoothdemo" rel="nofollow">https://github.com/blackberry/JDE-Samples/tree/master/com/rim/samples/device/bluetooth/bluetoothdemo</a></p>
  
  <p>I referred this program of bluetooth demo which</p>
  
  <ol>
  <li><p>Takes info of bluetooth serial ports available in AppScreen and finds if they are supported or not</p></li>
  <li><p>The SPPScreen java file takes info of bluetooth serial port and connects to serial port whose device id is " Hi there "</p></li>
  </ol>
  
  <p>This class has got terms like DSR_ON , DSR_OFF , DTR in menu  which enables DSR as on, DSR as off and checks DTR status ... which I did not get</p>
  
  <p>This class also includes loopback on and loop back off which is a flag used during receive method.</p>
  
  <p>This class contains method <code>sendData()</code> which sends 1k data and <code>dataReceive()</code> method to receive data, but this method has not been called anywhere as per my knowledge inside the code.</p>
  
  <p>Steps i took before implemeting the code .</p>
  
  <p>The bluetooth does not work on simulator , so I signed and tested on 2 real devices .</p>
  
  <p>I named both the devices (Suppose Device A and Device B) as "Hi there" and paired them manually outside the application .</p>
  
  <p>Then I launched the application on both the devices .</p>
  
  <p>From Device B I selected the option for Listen for connection from menu and on Device A ... I connected to Hi there device then it got connected and then on device A it says</p>
  
  <p>"Type something..." and on device B it says</p>
  
  <p>"Connect external device and then type something..."</p>
  
  <p>So up to this step the program works fine . Now when I type something nothing seems to happen.</p>
  
  <p>So my concern is</p>
  
  <ol>
  <li><p>Does this code really sends and  receives data between the two devices A and B.</p></li>
  <li><p>If any one gets the whole project code, please explain.</p></li>
  </ol>