Last active
April 9, 2020 19:18
-
-
Save aya-salama1989/172eb45066b96e4ff17d99776426f259 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val discoverableIntent =Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE) | |
discoverableIntent | |
.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,0/*set a duration, 0 is not recommended*/) | |
startActivity(discoverableIntent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment