Android Question Check airplane mode status

Discussion in 'Android Questions' started by imgsimonebiliato, Jan 30, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    how can I check if airplane mode is ON/OFF?
     
  2. Cableguy

    Cableguy Expert Licensed User

    Use the phone lib. You know this forum has a search function. .. you should use it.
     
    lemonisdead likes this.
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    I used it.
    I founded posts dated 2011.
    Surely there is something more updated.
     
  4. Cableguy

    Cableguy Expert Licensed User

    Actually. . No. The base phone lib is a standard lib, meaning it comes with b4a. It is always up to date by the release date.
    the methods used in b4a however do not change (much) for retro-compatibility purposes.
    Just try those 3 year old examples and you will see they work!
     
    lemonisdead likes this.
  5. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Why use these old codes?
    I found this:

    Code:
    Dim p As Phone
    Return p.IsAirplaneModeOn
    bye
     
  6. Cableguy

    Cableguy Expert Licensed User

    They may be old but they work.
    In your code you are dimming a phone object!
     
  7. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

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