Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidishere/bacb3d4930a07b68d83234843d2f189c to your computer and use it in GitHub Desktop.
Save sidishere/bacb3d4930a07b68d83234843d2f189c to your computer and use it in GitHub Desktop.
// Register for broadcasts when a device is discovered IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);
this.registerReceiver(mReceiver, filter); // Register for broadcasts when discovery has finished
filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
this.registerReceiver(mReceiver, filter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment