I would like to disable bluetooth after I am done with it as part of my cleanup activities.
As explained in other questions and the android documentation, the BluetoothAdapter.disable()
method disable bluetooth but the method documentation also states
Bluetooth should never be disabled without direct user consent. The disable() method is provided only for applications that include a user interface for changing system settings, such as a "power manager" app.
The obvious approach for user consent would be to make my own popup and ask for consent. Other than this, to keep the approach to enable and disable similiar,
Is there an intent action similiar to Bluetooth Enable ( ACTION_REQUEST_INTENT
) available to disable bluetooth?