Logo Icon Logo
A Crowd-sourced Cookbook on Writing Great Android® Apps
GitHub logo Twitter logo OReilly Book Cover Art

Sharing SL4A Scripts in QR Codes

In Chapter: Other Programming Languages
Author: Rachee Singh ('racheesingh')
Published? true
FormatLanguage: WikiFormat


You need to distribute your ASE scripts using QR (Quick Response) Codes


Use [1] or one of several other QR code generators to generate a QR code for your script.


Most people think of QR Codes as a convenient way to share URL-type links. Indeed, the printed edition of this book uses QRCodes for individual downloads of sample applications. However, the QRCode format is much more versatile, and can be used to package all sorts of things, like VCard (name and address) information. Here we use it to wrap the "plain text" of an ASE script, so that another Android user can get the script onto their device without retyping it. QR (Quick Response) codes are a great way to share your scripts if they are short (since QR codes can only encode 4,296 characters of content).

Follow these simple steps to generate a QR code for your script:

  • Visit [1]. (You could also use QR Droid)
  • Select 'text' from the drop down menu.
  • In text content, put the script's name in the first line.
  • From the next line onwards, enter the script.
  • Choose 'L' in barcode size and click generate.
  • This is how it looks:

Many QR code readers are available for Android. Any such application can decipher the text that the QR code encrypts.