I have learned the codes to make blue-tooth discoverable in Android,like:
Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);
startActivity(discoverableIntent);` =
So, how can i make blue-tooth un-discoverable artificially as soon as i make it discoverable?
Thanks for all help!