<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Quicksand Bottle</title>
	<atom:link href="http://erics2011.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://erics2011.wordpress.com</link>
	<description>Enjoy from Innovating</description>
	<lastBuildDate>Fri, 05 Aug 2011 14:13:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='erics2011.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Quicksand Bottle</title>
		<link>http://erics2011.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://erics2011.wordpress.com/osd.xml" title="Quicksand Bottle" />
	<atom:link rel='hub' href='http://erics2011.wordpress.com/?pushpress=hub'/>
		<item>
		<title>An example to create QR Code with Zxing &#8211; Java Version</title>
		<link>http://erics2011.wordpress.com/2011/08/02/an-example-to-create-qr-code-with-zxing-java-version/</link>
		<comments>http://erics2011.wordpress.com/2011/08/02/an-example-to-create-qr-code-with-zxing-java-version/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:29:02 +0000</pubDate>
		<dc:creator>erics2011</dc:creator>
				<category><![CDATA[JavaSE]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[QR Code]]></category>
		<category><![CDATA[Zxing Example]]></category>

		<guid isPermaLink="false">http://erics2011.wordpress.com/?p=17</guid>
		<description><![CDATA[An example to create QR Code with Zxing ZXing (pronounced &#8220;zebra crossing&#8221;) is an open-source, multi-format 1D/2D barcode image processing library implemented in Java. This paragraph of code need 2 jar libs to run, which can be obtained from Zxing (http://code.google.com/p/zxing/). Jars can be made from [core] and [javase] folders by using ant. Hope this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erics2011.wordpress.com&amp;blog=25726217&amp;post=17&amp;subd=erics2011&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An example to create QR Code with Zxing</p>
<p>ZXing (pronounced &#8220;zebra crossing&#8221;) is an open-source, multi-format 1D/2D barcode image processing library implemented in Java.</p>
<p><pre class="brush: css;">
	  QRCodeWriter writer = new QRCodeWriter();
	  BitMatrix bitMatrix = null;
	  try {
		  bitMatrix = writer.encode(&quot;HTTP://WWW.GOOGLE.COM&quot;, BarcodeFormat.QR_CODE, 300, 300);
		  MatrixToImageWriter.writeToFile(bitMatrix, &quot;gif&quot;, new File(&quot;C:\\output.gif&quot;));
		  } catch (WriterException e){
			  e.printStackTrace();
		  } catch (IOException e){
			  e.printStackTrace();
		  }
</pre></p>
<p>This paragraph of code need 2 jar libs to run, which can be obtained from Zxing (<a href="http://code.google.com/p/zxing/">http://code.google.com/p/zxing/</a>).</p>
<p>Jars can be made from [core] and [javase] folders by using ant.</p>
<p>Hope this can help you to start.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erics2011.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erics2011.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erics2011.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erics2011.wordpress.com&amp;blog=25726217&amp;post=17&amp;subd=erics2011&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erics2011.wordpress.com/2011/08/02/an-example-to-create-qr-code-with-zxing-java-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31560cd5c0034c4dbdb3e9c3ed220bad?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">erics2011</media:title>
		</media:content>
	</item>
		<item>
		<title>Qr Codes With Android</title>
		<link>http://erics2011.wordpress.com/2011/08/01/qr-codes-with-android/</link>
		<comments>http://erics2011.wordpress.com/2011/08/01/qr-codes-with-android/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 11:41:48 +0000</pubDate>
		<dc:creator>erics2011</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Android QR code Intent]]></category>

		<guid isPermaLink="false">http://erics2011.wordpress.com/?p=6</guid>
		<description><![CDATA[Author:      Frank Robles Original Links: http://awalkingcity.com/blog/2008/10/23/qr-codes-made-even-easier-with-android/ The G1 came out this week and I have been putting it through the paces. I really like the seamless transition between developing with the emulator and developing on the device. I think overall it is a very strong first device for Android, but I think that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erics2011.wordpress.com&amp;blog=25726217&amp;post=6&amp;subd=erics2011&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Author:      Frank Robles</p>
<p>Original Links:</p>
<p><a href="http://awalkingcity.com/blog/2008/10/23/qr-codes-made-even-easier-with-android/">http://awalkingcity.com/blog/2008/10/23/qr-codes-made-even-easier-with-android/</a></p>
<p>The G1 came out this week and I have been putting it through the paces. I really like the seamless transition between developing with the emulator and developing on the device. I think overall it is a very strong first device for Android, but I think that normal users may not recognize some of the more powerful features of the platform.</p>
<p>The Intent system allows for applications and activities to interact with each other, so that you can have applications using the features of other applications. I think this is a really interesting concept and think it could lead to a less application-centric view of phone operation towards a more feature-centric view. Instead of developing an entire application, developers can develop specific features that perform a very specific task. These features can be used by other applications to create new and interesting functionality.</p>
<p>I think the best example of this concept is Barcode Scanner. Barcode Scanner is the application specific manifestation of <a href="http://code.google.com/p/zxing/">ZXing</a> which I blogged about previously. Installing it lets you scan bar and QR Codes and lets you perform search actions or interact with the results(like an e-mail address or phone number). The two shopping applications CompareAnywhere and ShopSavvy use the ZXing library themselves for doing barcode scanning, but they include the ZXing library as part of their application bundle.</p>
<p>In my previous entry I mentioned that I would like to see specific Intents that let you use the encoding and decoding ability of ZXing from other applications and the ZXing team responded that the latest build had this exact functionality! Now all you have to do is install Barcode Scanner on your phone and your applications can take advantage of its features. Specifically, it provides Intents that allow your application to use the encoding and decoding functionality. The Intent mechanism makes it almost too simple to integrate this functionality into your application.<br />
<strong></strong></p>
<p><strong><br />
Encoding – “com.google.zxing.client.android.ENCODE”</strong></p>
<p>To encode a string into a QR Code Simply create an Intent with the Decode action specified, two string extras specifying the Type and Data and call startActivity():</p>
<p><pre class="brush: css;">

Intent intent = new Intent(&quot;com.google.zxing.client.android.ENCODE&quot;);
                intent.addCategory(Intent.CATEGORY_DEFAULT);
                intent.putExtra(&quot;ENCODE_TYPE&quot;, &quot;TEXT_TYPE&quot;);
                intent.putExtra(&quot;ENCODE_DATA&quot;,&quot;HELLO WORLD&quot;);
startActivity(intent);

</pre></p>
<p>The string values for the Intents and the extras values can be found in the Intents and Content classes in the <a href="http://code.google.com/p/zxing/">ZXing</a> source code.</p>
<p><a href="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs1.png"><img class="aligncenter" title="bs1" src="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs1.png" alt="" width="320" height="480" /></a></p>
<p><strong>Decoding – “com.google.zxing.client.android.SCAN”</strong></p>
<p>Bringing up the decoding camera interface is just as easy as encoding with the added step of having it return the decoded value of the barcode to our main application.</p>
<p><pre class="brush: css;">
Intent intent = new Intent(&quot;com.google.zxing.client.android.SCAN&quot;);  
                intent.addCategory(Intent.CATEGORY_DEFAULT);  
                startActivityForResult(tent,0);  
</pre></p>
<p>The big difference here is that we are using startActivityForResult which will allow the scanning activity to return the results of the scan back to our app. In the Activity that launched the decode intent we can extract the results of the scan in the onActivityResult method by simply accessing the string extra “SCAN_RESULT”.</p>
<p><pre class="brush: css;">
data.getStringExtra(&quot;SCAN_RESULT&quot;); 
</pre></p>
<p><a href="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs2.png"><img class="aligncenter" title="bs2" src="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs2.png" alt="" width="480" height="320" /></a></p>
<p><a href="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs3.png"><img class="aligncenter" title="bs3" src="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs3.png" alt="" width="480" height="320" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erics2011.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erics2011.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erics2011.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erics2011.wordpress.com&amp;blog=25726217&amp;post=6&amp;subd=erics2011&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erics2011.wordpress.com/2011/08/01/qr-codes-with-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31560cd5c0034c4dbdb3e9c3ed220bad?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">erics2011</media:title>
		</media:content>

		<media:content url="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs1.png" medium="image">
			<media:title type="html">bs1</media:title>
		</media:content>

		<media:content url="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs2.png" medium="image">
			<media:title type="html">bs2</media:title>
		</media:content>

		<media:content url="http://awalkingcity.com/blog/wp-content/uploads/2008/10/bs3.png" medium="image">
			<media:title type="html">bs3</media:title>
		</media:content>
	</item>
	</channel>
</rss>
