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: procedures TForm1 . FormCreate (Sender: TObject);
FWaitingForResults: = False ;
if not TPlatformServices . Current . SupportsPlatformService (IFMXClipboardService, IInterfaces (FClipBoardService)) then
raise Exception . Create ( 'Can not get access to clipboard service!' );
FMXExpress.com has over 700 tips and tricks for building cross platform apps on Android, IOS, OSX, Windows, and Linux with a single codebase and single UI using the FireMonkey framework found in Delphi and C++Builder.
FMXExpress covers top cross platform secrets for FireMonkey in C++Builder and Delphi XE5, XE6, XE7, XE8, Seattle, Berlin, Tokyo, Rio, and Sydney.
Here’s an update (to XE7) version of this project: http://blog.delphiedintorni.it/2014/10/leggere-e-produrre-barcode-con-delphi.html
Hello Andrea. I compiled with Delphi 10 Seattle and does not work .