蓝牙扫描过程是指扫描蓝牙设备
app层
这里有两张截图
第一张图显示的是安卓设置setting菜单栏中有Bluetooth这一项,点进去以后,点击右上角显示如下的截图。
其中Refresh就是刷新设备列表,也就会扫描设备信息。
上图显示的三个菜单在BluetoothSettings.java文件。
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
if (mLocalAdapter == null) return;
// If the user is not allowed to configure bluetooth, do not show the menu.
if (isUiRestricted()) return;
boolean bluetoothIsEnabled = mLocalAdapter.getBluetoothSt