赞
踩
蓝牙扫描过程是指扫描蓝牙设备
这里有两张截图
第一张图显示的是安卓设置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.getBluetoothState() == BluetoothAdapter.STATE_ON;
- boolean isDiscovering = mLocalAdapter.isDiscovering();
- int textId = isDiscovering ? R.string.bluetooth_searching_for_devices :
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。