Airplane mode control using Python?

Kevin Peterson qh.resu01 at gmail.com
Mon Dec 23 04:20:47 CET 2013


Hi, 

I am trying to control Aeroplane mode on Android using Python code. I am running QPyPlus python. When I execute this code(that is widespread in the net), 

    #!/usr/bin/python 
    import android droid = android.Android()
    # go to airplane mode
     droid.toggleAirplaneMode()
     
    droid.makeToast('exiting')

I get the error 'no such attribute Android()'. 

One important thing is, I want to be able to do this without the need to reboot the Android device and any other working solution is also fine long as it is invokeable through Python.

Thanks,
Kevin Peterson





More information about the Python-list mailing list