Android Example Slide Switch - On / Off

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

  • JHSswitch.zip
    12.4 KB · Views: 838
Last edited:

Johan Schoeman

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

Attachments

  • JHSswitch1.zip
    13.4 KB · Views: 530
Top