BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mBluetoothAdapter.startLeScan(mLEScanCallback);
private BluetoothAdapter.LeScanCallback mLEScanCallback = new BluetoothAdapter.LeScanCallback() {
@Override
public void onLeScan( BluetoothDevice device, int rssi, byte[] scanRecord) {
}
};
mBluetoothAdapter.stopLeScan(mLEScanCallback);
项目 https://github.com/google/eddystone
https://github.com/google/uribeacon/tree/uribeacon-final/android-uribeacon