Code example for BluetoothAdapter

Methods: enable

0
    /** 
     * Enable Bluetooth hardware. 
     */ 
    public void enableBluetooth() { 
        if (mAdapter != null) {
            mAdapter.enable();
        } 
    } 
 
    /** 
     * Disable Bluetooth hardware. 
     */ 
    public void disableBluetooth() { 
        if (mAdapter != null) {
            mAdapter.disable();
        } 
    } 
 
    /** 
     * Get device name per bluetooth address. 
     */