Android笔记:蓝牙

if (!BTAdapter.isEnabled())

{

//没有打开,就启动确认窗口询问用户是否打开

Intent i = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);

startActivity(i);

}

原文地址:https://www.cnblogs.com/lxwy1992/p/6136444.html