<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Android barcode scanner in 6 lines of Python code</title>
	<atom:link href="http://www.mattcutts.com/blog/android-barcode-scanner/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattcutts.com/blog/android-barcode-scanner/</link>
	<description>neat fun stuff</description>
	<lastBuildDate>Sat, 18 May 2013 09:44:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: electro</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-1475686</link>
		<dc:creator>electro</dc:creator>
		<pubDate>Mon, 28 May 2012 21:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-1475686</guid>
		<description><![CDATA[i solve problem.

import android
droid = android.Android()
(id, result, error)=droid.scanBarcode()
barcode = (result[&#039;extras&#039;])
droid.view(&#039;http://books.google.com?q=&#039; + barcode[&#039;SCAN_RESULT&#039;])]]></description>
		<content:encoded><![CDATA[<p>i solve problem.</p>
<p>import android<br />
droid = android.Android()<br />
(id, result, error)=droid.scanBarcode()<br />
barcode = (result['extras'])<br />
droid.view(&#8216;http://books.google.com?q=&#8217; + barcode['SCAN_RESULT'])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ana</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-921991</link>
		<dc:creator>Ana</dc:creator>
		<pubDate>Fri, 23 Sep 2011 16:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-921991</guid>
		<description><![CDATA[I had the same problem, Vidhuran.

Switch the lines 3 and 4 from your code to:

code = droid.scanBarcode()
isbn = int(code.result[&#039;extras&#039;][&#039;SCAN_RESULT&#039;])]]></description>
		<content:encoded><![CDATA[<p>I had the same problem, Vidhuran.</p>
<p>Switch the lines 3 and 4 from your code to:</p>
<p>code = droid.scanBarcode()<br />
isbn = int(code.result['extras']['SCAN_RESULT'])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtooDetoo</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-894984</link>
		<dc:creator>ArtooDetoo</dc:creator>
		<pubDate>Fri, 02 Sep 2011 21:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-894984</guid>
		<description><![CDATA[&lt;code&gt;
require_once(&quot;Android.php&quot;);
$droid = new Android();
$code = $droid-&gt;scanBarcode();
$isbn = $code[&quot;result&quot;]-&gt;extras-&gt;SCAN_RESULT;
$url = &quot;http://books.google.com?q=&quot;.$isbn;
$droid-&gt;startActivity(&quot;android.intent.action.VIEW&quot;, $url);
?&gt;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p><code><br />
require_once("Android.php");<br />
$droid = new Android();<br />
$code = $droid-&gt;scanBarcode();<br />
$isbn = $code["result"]-&gt;extras-&gt;SCAN_RESULT;<br />
$url = "http://books.google.com?q=".$isbn;<br />
$droid-&gt;startActivity("android.intent.action.VIEW", $url);<br />
?&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtooDetoo</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-894982</link>
		<dc:creator>ArtooDetoo</dc:creator>
		<pubDate>Fri, 02 Sep 2011 21:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-894982</guid>
		<description><![CDATA[In PHP:

scanBarcode();
$isbn = $code[&quot;result&quot;]-&gt;extras-&gt;SCAN_RESULT;
$url = &quot;http://books.google.com?q=&quot;.$isbn;
$droid-&gt;startActivity(&quot;android.intent.action.VIEW&quot;, $url);
?&gt;]]></description>
		<content:encoded><![CDATA[<p>In PHP:</p>
<p>scanBarcode();<br />
$isbn = $code["result"]-&gt;extras-&gt;SCAN_RESULT;<br />
$url = &#8220;http://books.google.com?q=&#8221;.$isbn;<br />
$droid-&gt;startActivity(&#8220;android.intent.action.VIEW&#8221;, $url);<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vidhuran</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-836085</link>
		<dc:creator>Vidhuran</dc:creator>
		<pubDate>Thu, 07 Jul 2011 12:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-836085</guid>
		<description><![CDATA[I get the following error , 

TypeError : list indices must be integers , not str 

I used the folliwing code 

&lt;code&gt;
import android
droid = android.Android()
(id, result, error) = droid.scanBarcode()
isbn = int(result[&#039;extras&#039;][&#039;SCAN_RESULT&#039;])
url = “http://books.google.com?q=%d” % isbn
droid.view(url)
&lt;/code&gt;

The error comes up at line 
&lt;code&gt;
isbn = int(result[&#039;extras&#039;][&#039;SCAN_RESULT&#039;])
&lt;/code&gt;

I&#039;m using Nexus with android 2.3.4 (build GRJ22) 
and i have QRDroid as the barcode scanner app , the QRDroid intent opens when i run the script , but when the intent returns , this error is thrown and the script stops 

Thanks 
Vidhuran]]></description>
		<content:encoded><![CDATA[<p>I get the following error , </p>
<p>TypeError : list indices must be integers , not str </p>
<p>I used the folliwing code </p>
<p><code><br />
import android<br />
droid = android.Android()<br />
(id, result, error) = droid.scanBarcode()<br />
isbn = int(result['extras']['SCAN_RESULT'])<br />
url = “http://books.google.com?q=%d” % isbn<br />
droid.view(url)<br />
</code></p>
<p>The error comes up at line<br />
<code><br />
isbn = int(result['extras']['SCAN_RESULT'])<br />
</code></p>
<p>I&#8217;m using Nexus with android 2.3.4 (build GRJ22)<br />
and i have QRDroid as the barcode scanner app , the QRDroid intent opens when i run the script , but when the intent returns , this error is thrown and the script stops </p>
<p>Thanks<br />
Vidhuran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govinda Govinda</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-831319</link>
		<dc:creator>Govinda Govinda</dc:creator>
		<pubDate>Mon, 04 Jul 2011 02:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-831319</guid>
		<description><![CDATA[I have started learning Android Programming with Python! 
You can&#039;t survive in futuer without Android programming!]]></description>
		<content:encoded><![CDATA[<p>I have started learning Android Programming with Python!<br />
You can&#8217;t survive in futuer without Android programming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-758636</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 04 Apr 2011 19:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-758636</guid>
		<description><![CDATA[Anyone had luck with decoding ITF (Interleaved 2 of 5) barcodes using python scripting. I need to scan some lengths that the scanner does not read. Is there a way to send DecodeHints like &quot;Allowed_Lengths&quot; with Python scripting?]]></description>
		<content:encoded><![CDATA[<p>Anyone had luck with decoding ITF (Interleaved 2 of 5) barcodes using python scripting. I need to scan some lengths that the scanner does not read. Is there a way to send DecodeHints like &#8220;Allowed_Lengths&#8221; with Python scripting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Taylor</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-738469</link>
		<dc:creator>Jesse Taylor</dc:creator>
		<pubDate>Sat, 12 Mar 2011 20:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-738469</guid>
		<description><![CDATA[This is actually going to be really useful for me to scan books at thrift stores to check their prices, to see if I should buy them for resale on Ebay/Amazon. Very neat tool!]]></description>
		<content:encoded><![CDATA[<p>This is actually going to be really useful for me to scan books at thrift stores to check their prices, to see if I should buy them for resale on Ebay/Amazon. Very neat tool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tsais</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-634700</link>
		<dc:creator>Tsais</dc:creator>
		<pubDate>Mon, 27 Sep 2010 10:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-634700</guid>
		<description><![CDATA[@ Peter (IMC)

ewww Symbian is the Linux of phones?  how about Symbian is the swamp of eternal despair of phones?

can&#039;t install:  not signed
can&#039;t install:  certificate expired
pre-installed pdf reader takes up 30% of the screen for the UI with no full screen option
ever tried to make a playlist in the audio player? ouch... stoneage
70mb PC sync software that is absolute crap
oh and the occasional OS crashes that suddenly reset everything including the date to 1980 or something?

Was it really that iPhone and Android are so amazing or was there just such an incredible vacuum, anything would have been good enough to fill the void?

Well, I guess Android is pretty amazingly well thought out... thanks for the light]]></description>
		<content:encoded><![CDATA[<p>@ Peter (IMC)</p>
<p>ewww Symbian is the Linux of phones?  how about Symbian is the swamp of eternal despair of phones?</p>
<p>can&#8217;t install:  not signed<br />
can&#8217;t install:  certificate expired<br />
pre-installed pdf reader takes up 30% of the screen for the UI with no full screen option<br />
ever tried to make a playlist in the audio player? ouch&#8230; stoneage<br />
70mb PC sync software that is absolute crap<br />
oh and the occasional OS crashes that suddenly reset everything including the date to 1980 or something?</p>
<p>Was it really that iPhone and Android are so amazing or was there just such an incredible vacuum, anything would have been good enough to fill the void?</p>
<p>Well, I guess Android is pretty amazingly well thought out&#8230; thanks for the light</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armando Rowe</title>
		<link>http://www.mattcutts.com/blog/android-barcode-scanner/#comment-633426</link>
		<dc:creator>Armando Rowe</dc:creator>
		<pubDate>Fri, 24 Sep 2010 15:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/?p=2620#comment-633426</guid>
		<description><![CDATA[Moira:

There is a reference to beepmystuff.com in this thread, but they are closing the site. They recommend these services as more complete and crucially better supported products. Give them a try:

Delicious Library, Library Thing and Shelfworthy]]></description>
		<content:encoded><![CDATA[<p>Moira:</p>
<p>There is a reference to beepmystuff.com in this thread, but they are closing the site. They recommend these services as more complete and crucially better supported products. Give them a try:</p>
<p>Delicious Library, Library Thing and Shelfworthy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using n/a

 Served from: www.mattcutts.com @ 2013-05-18 08:26:37 by W3 Total Cache -->