QR Code Integration With Andriod Platform


by Rakesh Maltumkar

We are using ZXing (pronounced "zebra crossing") image processing libraries to scan QR Code using Android device. The solution involves easy steps to integrate Zxing libraries with Android to direct auto scan of QR Code. We are using Android environment for development that Eclipse Java IDE. Setp1: Acquire Zxing libray (Zxing 1.7 release bundle) from here (http://code.google.com/p/zxing/downloads/list) Step2: Extract the zip bundle. Step3: Create a new Android sample Project in Eclipse for QR Code Auto Scanner Test and set target to Android 2.2 SDK version. Step4: Locate Android folder from the extracted bundle and pick CaptureActivity.java source file. Step5: Also locate Core folder and import the source into the above sample project. Step6: Change the package name of above CaptureActivity.java file to match the above sample project package structure. Step7: Design a sample page with a SCAN button to add to the above sample project. Step8: Add navigation to SCAN button click event as shown below – Intent scanner = new Intent(QRCodeAutoScannerTest.this, CaptureActivity.class); startActivity(scanner); Step9: Change the existing manifest file to add the below filters – android:name="android.intent.category.BROWSABLE"/> <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/> android:name="android.intent.category.BROWSABLE"/> <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/> android:name="android.intent.category.BROWSABLE"/> <data android:scheme="http" android:host="www.google.co.uk" android:path="/mandroid:name="com.google.zxing.client.android.ENCODE"/> android:name="com.android.SEARCH_BOOK_CONTENTS"/> android:label="@string/bookmark_picker_name"> Step10: Also change manifest file to add the below permissions –

android:name="android.permission.CAMERA" /> android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission> Step11: Compile the project. Step12: Deploy into 2.2 Android devices to test the App.

About the Author

Rakesh Maltumkar is a Search Engine Optimization Expert in Etisbew - Android Application Software Development Company Etisbew has an impressive track record and expertise in the latest Information Technology, Website Redesign, Custom Application Development, ColdFusion, iphone, Blackberry, Android, Dotnet, Php and Java.

Tell others about
this page:

facebook twitter reddit google+



Comments? Questions? Email Here

© HowtoAdvice.com

Next
Send us Feedback about HowtoAdvice.com
--
How to Advice .com
Charity
  1. Uncensored Trump
  2. Addiction Recovery
  3. Hospice Foundation
  4. Flat Earth Awareness
  5. Oil Painting Prints