You have got the BluetoothDevice's details using the following part of your code, use this object to communicate to bluetooth device in serial port profile
"
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
"
the object "device" is the bluetooth device that you want to connect to. In general the UUID for serial port profile is 00001101-0000-1000-8000-00805F9B34FB
> BluetoothSocket Bsock = null;
> private static final UUID MY_UUID_SPP=UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); >InputStream tmpIn = null;
>OutputStream tmpOut = null;
>
>
> try{
>Bsock = device.createRfcommSocketToServiceRecord(MY_UUID_SPP);
> Bsock.connect();
> tmpIn = socket.getInputStream();
>tmpOut = socket.getOutputStream();
>//use input stream and output stream to read and write to dataserially
>
> }catch(IOException e){e.printStackTrace()}