Code example for BluetoothAdapter

Methods: getRemoteDevice

0
	private static final UUID MY_UUID_INSECURE = UUID
			.fromString("1dd35050-a437-11e1-b3dd-0800200c9a66");
 
	public BTConnection(String address) {
		mAdapter = BluetoothAdapter.getDefaultAdapter();
		BluetoothDevice device = mAdapter.getRemoteDevice(address);
		try { 
			mSocket = device
					.createInsecureRfcommSocketToServiceRecord(MY_UUID_INSECURE);
			mSocket.connect();
		} catch (IOException e) {
		} 
	} 
 
	@Override 
	public InputStream getInputStream() throws IOException {
		return mSocket.getInputStream();
	} 
 
	@Override 
	public OutputStream getOutputStream() throws IOException {