<?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>Droid Hacks &#187; python</title>
	<atom:link href="http://droidhacks.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://droidhacks.com</link>
	<description>Tips and Tricks for Android Users</description>
	<lastBuildDate>Fri, 27 Aug 2010 18:44:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Text to Speech Using Scripting</title>
		<link>http://droidhacks.com/2010/07/text-to-speech-using-scripting/</link>
		<comments>http://droidhacks.com/2010/07/text-to-speech-using-scripting/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 23:26:41 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=147</guid>
		<description><![CDATA[I&#8217;ve been fooling around with Scripting Layer for Android to generate some speech notifications. Two issues I ran into, figured I would share if anyone else does. The first was that the examples still use the droid.speak() call, and it should be droid.ttsSpeak() instead. Quick fix. The second however I only saw on my CM6]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fooling around with <a href="http://code.google.com/p/android-scripting/">Scripting Layer for Android</a> to generate some speech notifications. Two issues I ran into, figured I would share if anyone else does. The first was that the examples still use the droid.speak() call, and it should be droid.ttsSpeak() instead. Quick fix. The second however I only saw on my CM6 device, which was that no speech was coming out ever after I updated the ttsSpeak() call. logcat turned up the issue quickly enough though. I just needed to go into settings from the home screen and download the data necessary to generate speech. Once you&#8217;re in the &#8220;Voice Input and Output&#8221; area the process is obvious. It&#8217;s just knowing that you need to go into settings to get speech working that&#8217;s a bit tricky.</p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2010/07/text-to-speech-using-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Scripting Environment is now SL4A</title>
		<link>http://droidhacks.com/2010/07/android-scripting-environment-is-now-sl4a/</link>
		<comments>http://droidhacks.com/2010/07/android-scripting-environment-is-now-sl4a/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 08:33:22 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cyanogenmod]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=101</guid>
		<description><![CDATA[I downloaded and installed the latest Android scripting package, now called Scripting Layer for Android, or SL4A. I had some issues with it under CyanogenMod5 (probably my own, but I never debugged). Today I updated to a CM6 release and it seems to be working a whole lot better. There are links to a whole]]></description>
			<content:encoded><![CDATA[<p>I downloaded and installed the latest Android scripting package, now called <a href="http://code.google.com/p/android-scripting/">Scripting Layer for Android</a>, or SL4A. I had some issues with it under CyanogenMod5 (probably my own, but I never debugged). Today I updated to a CM6 release and it seems to be working a whole lot better. There are links to a <a href="http://code.google.com/p/android-scripting/wiki/Tutorials">whole bunch of examples on the Tutorials page</a>.</p>
<p>The application interface itself is pretty simple. When it first loads up you won&#8217;t have any interpreters besides shell. If you go into the View menu, select interpreters, and then select Add from the menu under there you can add other interpreters. The interpreters generally come with example scripts, which will show up in the main list view once they&#8217;re loaded:</p>
<p><img src="http://droidhacks.com/wp-content/uploads/2010/07/wpid-screenshot_2.png" alt="" title="wpid-screenshot_2.png" width="240" height="400" /></p>
<p>There&#8217;s a preferences screen, which covers mostly visual options:</p>
<p><img src="http://droidhacks.com/wp-content/uploads/2010/07/wpid-screenshot_3.png" alt="" title="wpid-screenshot_3.png" width="240" height="400" /></p>
<p>If you long press on a script you have an option to edit it:</p>
<p><img src="http://droidhacks.com/wp-content/uploads/2010/07/wpid-screenshot_4.png" alt="" title="wpid-screenshot_4.png" width="240" height="400" /></p>
<p>The editor that comes up is just a simple but effective textbox, so at least you can edit scripts in place on the device:</p>
<p><img src="http://droidhacks.com/wp-content/uploads/2010/07/wpid-screenshot_5.png" alt="" title="wpid-screenshot_5.png" width="240" height="400" /></p>
<p>And then you can run a script, in this place displaying a toast message over the keyboard when I run the hello world program:</p>
<p><img src="http://droidhacks.com/wp-content/uploads/2010/07/wpid-screenshot_6.png" alt="" title="wpid-screenshot_6.png" width="240" height="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2010/07/android-scripting-environment-is-now-sl4a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Scripting Environment</title>
		<link>http://droidhacks.com/2009/06/android-scripting-environment/</link>
		<comments>http://droidhacks.com/2009/06/android-scripting-environment/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 02:39:39 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=49</guid>
		<description><![CDATA[Google has recently released a scripting environment for Android that allows you to write Python, Lua, or BeanShell scripts that interface with Android functionality. From the project page: Handle intents Start activities Make phone calls Send text messages Scan bar codes Poll location and sensor data Use text-to-speech]]></description>
			<content:encoded><![CDATA[<p>Google has recently released a <a href="http://code.google.com/p/android-scripting/">scripting environment for Android</a> that allows you to write Python, Lua, or BeanShell scripts that interface with Android functionality. From the project page:</p>
<ul>
<li>Handle intents</li>
<li>Start activities</li>
<li>Make phone calls</li>
<li>Send text messages</li>
<li>Scan <a rel="nofollow" href="http://code.google.com/p/zxing/">bar codes</a></li>
<li>Poll location and sensor data</li>
<li>Use <a rel="nofollow" href="http://code.google.com/p/eyes-free/">text-to-speech</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2009/06/android-scripting-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
