蓝牙惯用方法

蓝牙常用方法打开蓝牙:有提示: Intent enableIntent new Intent( BluetoothAdapter.ACTION_REQUEST_ENAB

蓝牙常用方法

打开蓝牙:有提示: Intent enableIntent = new Intent( BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableIntent, REQUEST_ENABLE_BT);无提示:mBluetoothAdp = BluetoothAdapter.getDefaultAdapter();// 获取本地蓝牙适配器mBluetoothAdp.enable();关闭蓝牙:mBluetoothAdp.disenable();
?