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


Groups > comp.lang.python > #62583

Airplane mode control using Python?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <qh.resu01@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'attribute': 0.07; "'no": 0.09; 'subject:using': 0.09; 'python': 0.11; 'reboot': 0.16; 'thanks,': 0.17; 'code.': 0.18; 'trying': 0.19; 'import': 0.22; 'error': 0.23; 'fine': 0.24; 'kevin': 0.30; 'mode': 0.30; 'peterson': 0.31; 'running': 0.33; 'skip:# 10': 0.33; 'device': 0.34; 'skip:d 20': 0.34; 'received:google.com': 0.35; 'subject:?': 0.36; 'hi,': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'such': 0.63; 'header:Reply-to:1': 0.77; 'reply-to:addr:gmail.com': 0.80; 'header:Return-Path:2': 0.84; 'widespread': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:to:from:reply-to:subject:message-id:mime-version :content-transfer-encoding:content-type; bh=C/BHePk6vJcBC+Q67ZfbJxzoEFGBFMRdUecOeDlFQeU=; b=Vu8tlzBg3ZZIruSdMAEHuy/wHHHVtxkhf/efvlBaqO4L18fQrGZ21ziHEkU+RLFhX1 a3UVPJLrMh/K/zBv5muK3iSXFOzD/VxXeipesIISrjtUhnWChJluXycmdGIM0V1YiZGK /fmmgXt4Fxc5S0nGudumGaAJzbr7jCHH0elLjVlNct8rpjDmwYK+sCBHHa7F/SYERlNO jZcc/DP7RTqaA9d/1eszPzXBArJSKV51SmuU3k6Ktk/093Y37JRF0ALL4WvX9kj/5YOD mQP4X9z/Fm0rJph5wymiBouPWeqb+cUnQWH8NBnYgLbM3TDfYd/fW1i5MT5K1kK7raH9 iyIQ==
X-Received by 10.68.248.100 with SMTP id yl4mr23216068pbc.41.1387768849091; Sun, 22 Dec 2013 19:20:49 -0800 (PST)
Date Mon, 23 Dec 2013 03:20:47 +0000
To python-list@python.org
From Kevin Peterson <qh.resu01@gmail.com>
Subject Airplane mode control using Python?
X-Priority 3
X-Mailer CatPHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version 1.0
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset="utf-8"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To Kevin Peterson <qh.resu01@gmail.com>
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4525.1387768852.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1387768852 news.xs4all.nl 2829 [2001:888:2000:d::a6]:35092
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62583

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web