Android Bluetooth On Off Visible

Hello there. In this article, we will briefly explain how to turn on, turn off, and make bluetooth on android applications.

Set the look of the progeny that you have created as follows. I put 3 buttons as simple as simple.

  • File:res/layout/activity_main.xml

Now we need to define 2 permissions in our AndroidManifest file. You can either define them by writing them in Permission or by typing them manually in the xml section.

We add in this way:


  • File:MainActivity.class

  • We wrote the codes of our buttons for bluetooth on off as above.


  • Open Button Action

  • Allow Button Action

  • Close Button Action


if you have question do not forget to write from the chat button next to it or from the comment

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *