Skip to content
bassel-hanna edited this page Mar 22, 2018 · 9 revisions
                                             QR Code Scanner

Description:

This application was created to scan and generate QR code using zxing library. A QR code is abbreviated from Quick Response Code and consists of black squares arranged in a square grid on a white background, which can be read by an imaging device such as a camera. QR code Scanner

The activity responsible for this function is « QrScanner ».

Several types of elements can be scanned by the application :

  • • url : compatible with :
  1. o. HTTP://MYSITE.COM/FOO..
  2. o. http://mysite.com/foo..
  3. o. URLTO:google.com/m
  4. o. www.google.com
  • • Email address :
  1. o [email protected] ;
  2. o mailto:[email protected]
  • • phone number :
  1. o tel:+1-212-555-1212
  • • contact information :
  1. o MeCard : MECARD:N:Owen,Sean;ADR:76 9th Avenue, 4th Floor, New York, NY 10011;TEL:12125551212;EMAIL:[email protected];
  2. o VCard
  3. o BizCard : BIZCARD:N:Sean;X:Owen;T:Software Engineer;C:Google;A:76 9th Avenue, New York, NY 10011;B:+12125551212;E:[email protected];
  • • SMS : sms:[number]:[subject] ; smsto:
  • • MMS : mms:[number]:[subject] ; mmsto:
  • • Geographic Information : geo:40.71872,-73.98905,100
  • • Wifi : WIFI:T:WPA;S:mynetwork;P:mypass;;
  • • Google play : market://details?id=org.exam ple.foo

Use : Scan button with a red line to focus on the element to scan. It automatically scans the element when it recognizes it and then send it to the ResultActivity where it is analyzed. Then the user is informed about the type (email address…) and the content ([email protected]). You can share or copy the content. And if the element scanned is an email address, you can also directly send an email to this email address. QR code generator

The activity responsible for this function is « QrGenerator ».

Several types of elements can be generated by the application :

  • • url
  • • phone number
  • • contact information : o MeCard o VCard o BizCard
  • • SMS
  • • MMS
  • • Geographic Information
  • • Wifi
  • • Google play
  • • Email address

Use :

Choose in the list which type then enter the content and then press generate to have the QR code. You can save it in the gallery or share it by email, SMS, messenger…

Tutorial activity:

This activity shows automatically for the first use of the application due to SharedPreferences service that can recognize the state as the first use or not. Then to see it again, you need to go to “Tutorial activity”.

History activity:

In this activity, every QR code that the user scanned automatically is saved if the option is activated in the setting. If the user selects one of the previous registered QR code, it is re-sent to ResultActivity and then re-analyzed like the first time and shows type and content. Then the user can also, once again, share it or copy it. It is possible to delete every element saved one by one by a long click on the element or delete all in once by a click on “delete all”. Database type used is SQLite.

Help activity:

This activity gives some tips for the user if he doesn’t succeed to use the application as a scanner or generator. Ex : If the scanner doesn’t recognize the QR code : optimize the distance between the QR Code and the camera.

Settings activity:

  • • All the preferences can be saved and memorized. This is an option to activate in the Settings. This function is possible due to the SharedPreferences Service.
  • • Option to save every QR code scanned in the History activity
Clone this wiki locally