Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private final BroadcastReceiver bReciever = new BroadcastReceiver() {
- public void onReceive(Context context, Intent intent) {
- String action = intent.getAction();
- if (BluetoothDevice.ACTION_FOUND.equals(action)) {
- BluetoothDevice curDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
- devices.add(curDevice);
- }
- Log.i(TAG, "All BT Devices : " + devices.size());
- if (devices.size() > 0) {
- showPairedList();
- }
- }
- };
Add Comment
Please, Sign In to add comment