Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62583 > unrolled thread

Airplane mode control using Python?

Started byKevin Peterson <qh.resu01@gmail.com>
First post2013-12-23 03:20 +0000
Last post2013-12-23 03:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Airplane mode control using Python? Kevin Peterson <qh.resu01@gmail.com> - 2013-12-23 03:20 +0000

#62583 — Airplane mode control using Python?

FromKevin Peterson <qh.resu01@gmail.com>
Date2013-12-23 03:20 +0000
SubjectAirplane mode control using Python?
Message-ID<mailman.4525.1387768852.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web