Android Example Slide Switch - On / Off

Johan Schoeman

Expert
Licensed User
Switch.png


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.
 

Attachments

Last edited:

Johan Schoeman

Expert
Licensed 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.
 

Attachments

Top