Guest User

Untitled

a guest
Oct 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. private final BroadcastReceiver bReciever = new BroadcastReceiver() {
  2. public void onReceive(Context context, Intent intent) {
  3. String action = intent.getAction();
  4. if (BluetoothDevice.ACTION_FOUND.equals(action)) {
  5. BluetoothDevice curDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
  6. devices.add(curDevice);
  7. }
  8. Log.i(TAG, "All BT Devices : " + devices.size());
  9. if (devices.size() > 0) {
  10. showPairedList();
  11. }
  12. }
  13. };
Add Comment
Please, Sign In to add comment