Code example for BluetoothAdapter

Methods: getProfileProxy

0
        } 
 
    } 
 
    boolean getProfileProxys() { 
        if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET))
            return false; 
 
        if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP))
            return false; 
 
        return true; 
    } 
 
    void nextStepConnect() { 
        switch (mState) {
            case STATE_INIT_COMPLETE:
                if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
                    requestPairConfirmation(); 
                    mState = STATE_WAITING_FOR_BOND_CONFIRMATION;
Connect your IDE to all the code out there  Get Codota for Java