Android Example Slide Switch - On / Off

Discussion in 'Tutorials & Examples' started by Johan Schoeman, Apr 2, 2015.

  1. Johan Schoeman

    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.
     

    Attached Files:

    Last edited: Jul 7, 2015
    lemonisdead and f0raster0 like this.
  2. Johan Schoeman

    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.
     

    Attached Files:

    f0raster0 likes this.
  3. cxdzbl

    cxdzbl Active Member Licensed User

    Good idea
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice