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


Groups > comp.lang.python > #16292

[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <stef.mientki@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:ANN': 0.02; '"""': 0.07; 'exec': 0.07; 'url:py': 0.07; 'python': 0.08; 'subject:library': 0.09; 'library': 0.13; 'to:name:python- list@python.org': 0.15; 'simplest': 0.16; 'stef': 0.16; 'subject:Language': 0.16; 'received:74.125.82.44': 0.16; 'received :mail-ww0-f44.google.com': 0.16; 'cheers,': 0.20; 'to:2**1': 0.21; 'linux,': 0.21; '(without': 0.23; 'import': 0.27; 'url:code': 0.28; '(this': 0.28; 'installing': 0.29; 'print': 0.29; 'host': 0.30; 'skip:* 50': 0.30; 'url:detail': 0.30; 'url:downloads': 0.32; 'familiar': 0.32; 'people,': 0.32; 'message-id:@gmail.com': 0.33; 'subject:[': 0.33; 'header:User-Agent:1': 0.33; 'that,': 0.33; 'to:addr:python-list': 0.34; 'received:74.125.82': 0.35; 'especially': 0.35; 'device': 0.36; 'to:addr:python-announce- list': 0.37; 'run': 0.37; 'received:192': 0.37; 'hello,': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'despite': 0.38; 'allows': 0.38; 'files': 0.39; 'subject: (': 0.40; "it's": 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40; 'matter': 0.61; 'url:p': 0.62; 'android': 0.66; 'sfxlen:3': 0.66; 'here:': 0.66; 'subject:For': 0.67; 'usb': 0.73; 'touching': 0.84; 'device,': 0.93; 'device.': 0.93; 'subject:Android': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Rq+5A2UgnGIqZzPqmPuddWzh92vQJVL3vMRHXqsfe1o=; b=fMFyNsrF6jzgnGYbqlcWhX0s0jQMfr68EvCcOitDPyelFmJ7g89hCazYrTQDCpzfVE CNLoTWPf2/yvPf3MYEj57nJqsgxulfobGV9/3h10ZBvBPdJhtGl+hrxyARzhLqrNRS7t yYO3j7M31sucUzQzS5VvZEliQWDxZdQcl2LzM=
Date Sun, 27 Nov 2011 17:46:26 +0100
From Stef Mientki <stef.mientki@gmail.com>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version 1.0
To "python-announce-list@python.org" <python-announce-list@python.org>, "python-list@python.org" <python-list@python.org>
Subject [ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3076.1322412393.27778.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1322412393 news.xs4all.nl 6949 [2001:888:2000:d::a6]:51158
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16292

Show key headers only | View raw


hello,

The information on ADB / SL4A is quiet overwhelming.
Despite that, especially for people, not familiar with Linux, it's not an easy task to get their 
first program running.
This library allows you to easy upload and run Python files on a Android device, without pressing 
any button on the Android device.

After installing SL4A and Py4A on the Android device, and ADB on the hostmachine, it's just a matter 
of connecting the USB cable between Android device and host-PC, and run the program.

One of the simplest program that will run out of the box (without touching any button on the Android 
device) :

# *****************************************************
from adb_sl4a_support import ADB_Connection

ADB = ADB_Connection ()
print ADB

# Create a simple program
Simple_Program = """
import android
droid = android.Android (( '%s', %s ))
droid.makeToast ( "Wasn't that easy?")
""" % ( ADB.SL4A_Servers [-1][0], ADB.SL4A_Servers [-1][1] )

# execute the program (this will run the program from the host PC !!)
exec ( Simple_Program )
# *****************************************************

you can find the library here:
http://code.google.com/p/pylab-works/downloads/detail?name=adb_sl4a_support.py&can=2&q=

cheers,
Stef

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


Thread

[ANN]  Android Debug Bridge (ADB)  Scripting Language For Android (SL4A)  convenience library Stef Mientki <stef.mientki@gmail.com> - 2011-11-27 17:46 +0100

csiph-web