Android Example Slide Switch - On / Off


This is a very, very simple project implementing a slide switch with B4A code only. Track flag1 and flag2 to know the state of the two switches (i.e are the switches on or off). Nothing other than the core library has to be enabled.


    12.4 KB · Views: 979
Last edited:

Johan Schoeman

Licensed User
Longtime User
The attached project refers. The top horizontal switch should switch on/off the Bluetooth of your device while the right vertical switch (rounded corners) should switch on/off the WiFi of your device. Nothing has been assigned to the left (square) vertical switch. It uses inline java code to enable/disable Bluetooth and Wifi.


    13.4 KB · Views: 640