Code example for BluetoothSocket

Methods: getRemoteDevice

0
public class BluetoothNetworkConnector extends AndroidNetworkConnector { 
	 
	private BluetoothSocket socket;
	private BluetoothAdapter adapter;
 
	public BluetoothNetworkConnector(UrcAndroidApp application) {
		super(application);
		adapter = BluetoothAdapter.getDefaultAdapter();
	} 
 
	@Override 
	protected NetworkEndPoint createNetworkEndPoint() { 
		return new BluetoothSppEndPoint(socket);
	} 
 
	@Override 
	protected void platformCloseConnection() throws IOException { 
		if(socket != null) socket.close();
	} 
 
	@Override