{"id":2200,"date":"2013-05-04T21:15:32","date_gmt":"2013-05-05T09:21:10","guid":{"rendered":"https:\/\/programresource.net\/?p=2200"},"modified":"2013-05-05T18:21:10","modified_gmt":"2013-05-05T09:21:10","slug":"readwrite-multi-qr-code-using-zxing-part1-prepare-code","status":"publish","type":"post","link":"https:\/\/programresource.net\/en\/2013\/05\/04\/2200.html","title":{"rendered":"Read\/Write multi QR code using Zxing Part1 : Prepare Code"},"content":{"rendered":"<p>Upon developing android <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=net.nefastudio.android.dmoridesigner&amp;feature=search_result#?t=W251bGwsMSwyLDEsIm5ldC5uZWZhc3R1ZGlvLmFuZHJvaWQuZG1vcmlkZXNpZ25lciJd\" target=\"_blank\">design tool for Animal Crossing, New Leaf<\/a> (3DS game), I needed to read \/ write structured append QR code (4 sets of QR code consisting one data). I made a little modification to Zxing code, and will explain how I did it.<\/p>\n<p>I&#8217;m not going to explain detail on how to use Zxing library; refer to other site for basic usage.<\/p>\n<p>You need to prepare Ant for building Zxing source code, but if you only need to read structured array QR, you don&#8217;t need to rebuild source code (can be done using default library). If you want to create structrued array QR code, you will need to modify Zxing source code, so as Ant for rebuilding library file.<\/p>\n<p>I used Zxing 2.0 source code, so there may be difference in latest release. I also used Windows for building environment.<\/p>\n<p>First, download Zxing source \/ library (ZXing-2.X.zip).<\/p>\n<p><a href=\"https:\/\/code.google.com\/p\/zxing\/downloads\/list\" target=\"_blank\">https:\/\/code.google.com\/p\/zxing\/downloads\/list<\/a><\/p>\n<p>And Ant, if you want to rebuild source code (apache-ant-1.X.X-bin.zip).<\/p>\n<p><a href=\"http:\/\/ant.apache.org\/bindownload.cgi\">http:\/\/ant.apache.org\/bindownload.cgi<\/a><\/p>\n<p>Unzip each file to some folder. You need 2 files from Zxing file; jar file to Android project libs folder,\u00a0PlanarYUVLuminanceSource.java to project source file in order to read QR using camera.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">zxing-2.X\\core\\core.jar\r\nzxing-2.X\\android\\src\\com\\google\\zxing\\client\\android\\PlanarYUVLuminanceSource.java<\/pre>\n<p>Create batch file below under core folder so you can easily rebuild core.jar later on.<\/p>\n<pre class=\"brush: bash; title: buildcore.bat; notranslate\" title=\"buildcore.bat\">set path=%path%;&quot;c:\\Program Files\\Java\\jdk1.7.0_09\\bin&quot;;c:\\android\\Zxing\\apache-ant-1.8.4\\binset\r\nset JAVA_HOME=c:\\Program Files\\Java\\jdk1.7.0_09\r\nant<\/pre>\n<p>Modify path appropriate to your environment.<br \/>\nNow, preparation is complete. Let&#8217;s move to reading structured append QR code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upon developing android design tool for Animal Crossing, New Leaf (3DS game), I needed to read \/ write structured append QR code (4 sets of QR code consisting one data). I made a little modification to Zxing code, and will explain how I did it. I&#8217;m not going to explain detail on how to use Zxing library; refer to other site for basic usage. You need to prepare Ant for building Zxing source code, but if you only need to read structured array QR, you don&#8217;t need to rebuild source code (can be done using default library). If you want to create structrued array QR code, you will need to &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[330],"tags":[408,407,404,405,392,403,406,402],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3pJyQ-zu","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2200"}],"collection":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":1,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2201,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2200\/revisions\/2201"}],"wp:attachment":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}