Code example for BluetoothSocket

Methods: getRemoteDevice

0
	private DataOutputStream output;
	private String remoteConnectionInfo;
 
	public BluetoothSppEndPoint(BluetoothSocket socket) {
		this.socket = socket;
		this.remoteConnectionInfo = socket.getRemoteDevice().getAddress();
	} 
 
	@Override 
	public DataInputStream getDataInput() throws IOException {
		if(input == null) {
			input = new DataInputStream(socket.getInputStream());
		} 
		return input;
	} 
 
	@Override 
	public DataOutputStream getDataOuput() throws IOException {
		if(output == null) {
			output = new DataOutputStream(socket.getOutputStream());
		}