Tutorial To Read And Write Bar Codes And QR Codes With Delphi XE5 Firemonkey On Android

Andrea Magni has a blog post up with a tutorial for reading and writing bar codes and QR codes on Android with Delphi XE5 Firemonkey. There are a number of different blog posts and components around for handling bar codes and QR codes on Android. This tutorial explains how to use the third party application Barcode Scanner (which is free from Google Play) to handle reading and writing the bar codes. This method is similar to using CameraUI (aka the built in camera application on the device) for taking photos and videos. Even if you don’t need bar code scanning functionality the tutorial shows you how to launch an Intent on Android and then wait for the result to come back. The blog post is in Italian but I’ve run it through Google Translate for you. Here is some sample code from the tutorial which shows how to setup an ApplicationEventHandler which will receive the results from the Intent: