/** * Initiate a connection to an A2DP sink. Listen for SINK_STATE_CHANGED_ACTION to find out when * the connection is completed. * * @param device Remote BT device. * @return false on immediate error, true otherwise * @hide */ public boolean connectSink(BluetoothDevice device) { if (DBG) log("connectSink(" + device + ")"); try { return mService.connectSink(device); } catch (RemoteException e) { Log.e(TAG, "", e); return false; } }