<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Pythonian &#187; scripting</title>
	<atom:link href="http://thepythonian.com/tag/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://thepythonian.com</link>
	<description>All about the Python Programming Language</description>
	<lastBuildDate>Tue, 10 Aug 2010 18:18:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Python and Android for Barcode Scanning and Automating Controls</title>
		<link>http://thepythonian.com/2009/08/10/python-and-android-barcode-scanning/</link>
		<comments>http://thepythonian.com/2009/08/10/python-and-android-barcode-scanning/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 21:59:01 +0000</pubDate>
		<dc:creator>thePythonian</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[andoid]]></category>
		<category><![CDATA[barcode]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://thepythonian.com/?p=45</guid>
		<description><![CDATA[<p>If you wanted to use the Android to do a little python scripting, then you can use the  PythonAndroidAPI through the Android Scripting Environment (ASE).</p>
<p>Matt Cutts shows a six-line proof of concept barcode scanner sent to him by Vijayakrishna Griddaluru, republished below. Also, Included are two more examples of  android-scripting.</p>
Sample BarCode Scanner
import android
droid = android.Android()
code = [...]]]></description>
			<content:encoded><![CDATA[<p>If you wanted to use the Android to do a little python scripting, then you can use the  <a title="PythonAndroidAPI   A description of the Android API available to Python scripts." href="http://android-developers.blogspot.com/2009/04/introducing-glsurfaceview.html">PythonAndroidAPI</a> through the <a title="ASE" href="http://code.google.com/p/android-scripting/">Android Scripting Environment</a> (ASE).</p>
<p><a title="Bar Code Scanner" href="http://www.mattcutts.com/blog/android-barcode-scanner/">Matt Cutts</a> shows a six-line proof of concept barcode scanner sent to him by Vijayakrishna Griddaluru, republished below. Also, Included are two more examples of  android-scripting.</p>
<h4><em>Sample BarCode Scanner</em></h4>
<pre>import android
droid = android.Android()
code = droid.scanBarcode()
isbn = int(code['result']['SCAN_RESULT'])
url = “http://books.google.com?q=%d” %
isbn droid.startActivity(’android.intent.action.VIEW’, url)</pre>
<h4><em>Changing Ringer Volume</em></h4>
<pre>droid.getRingerVolume()
droid.setRingerVolume(5)
droid.setRingerSilent(True)
droid.vibrate(100)  # 100 milliseconds of vibration</pre>
<h4><em>Dialing numbers</em></h4>
<pre>droid.dialNumber("8675309")</pre>
<h3>More Code Snippits</h3>
<p>There is a <a title="Code Snippits" href="http://www.androidsnippets.org/">Android Snippits</a> site available, but all of the code seems dedicated to Java at the moment. You can follow <a title="Open Source at Google" href="http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html">this blog</a> to get more updates and participate in the discussion on the <a title="android-scripting" href="http://groups.google.com/group/android-scripting">ASE google group</a> as things develop, no pun intended.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://thepythonian.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://thepythonian.com/2009/08/10/python-and-android-barcode-scanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
