You may create an insecure bluetooth serial connection between two devices.
To create a connection:
Identify the BluetoothDevice
and call its method createInsecureRfcommSocketToServiceRecord
To receive a connection:
Get hold of BluetoothAdapter
and call the method listenUsingInsecureRfcommWithServiceRecord
This technique won't require the devices to establish a connection using pairing code. Its available in API level 10 and above.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…