Code example for BluetoothSocket

Methods: getInputStreamgetOutputStreamgetRemoteDevice

0
	public  BluetoothSocket		socket;
	 
	public ConnectedClient(final BluetoothSocket socket) {
		Log.d(TAG, "Client connected...");
		this.socket = socket;
		this.device = socket.getRemoteDevice();
		initStreams(); 
	} 
	 
	private void initStreams() { 
		try { 
			this.out = socket.getOutputStream();
			this.in  = socket.getInputStream();
		} catch (IOException e) {
			Log.d(TAG, Log.getStackTraceString(e));
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE