Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 10:44
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/f063a7873e83f07afd2f1ec6b9b3ecbc to your computer and use it in GitHub Desktop.
Save sidishere/f063a7873e83f07afd2f1ec6b9b3ecbc to your computer and use it in GitHub Desktop.
@Override protected void onDestroy() { super.onDestroy();
// Make sure we're not doing discovery anymore
if (bluetoothAdapter != null)
{
bluetoothAdapter.cancelDiscovery();
}
// Unregister broadcast listeners
this.unregisterReceiver(mReceiver);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment