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: 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 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 List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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