Scanning Service Usage

From wizarPOS
Revision as of 02:52, 13 September 2023 by Mahong (talk | contribs)

Scanning service, which allows Android devices with imaging hardware (cameras) to scan barcodes or QR code and retrieve encoded data. The encoded information usually includes web address, geographic coordinates and small pieces of text, as well as commercial product code. It provides AIDL for third-party applications.

Document

Version Download Release Time
3.0 CloudposScannerUsage_3.0 2021-09-17

Released SDK

Version Download Release Time
3.0.1 Barcode SDK 3.0.1 2023-09-01

Scan barcode testing application

Testing APK Download

Quickly launch the scan application in Q2/Q3

Physical action: double click power button. This feature can quickly launch the scan application. When click, the system will search for all the applications installed in the system and will launch the application with the scan intent-filter. If there are many applications, the system will provide a list for users to choose, and the selected application will start. The code for the scan intent-filter is as follows:

   <action android:name="android.intent.action.SCAN" />
   <category android:name="android.intent.category.DEFAULT" />

When there is no application in the system to define the scan intent-filter, pressing will not work. For example: In order to use the scan button to quickly launch the scan application, the application must define the scan intent-filter in its Android manifest file. The category and the action are defined as follows:

   <activity
   android:name="com.XX.activity.MainActivity"
   android:label="@string/app_name" >
    <intent-filter>      
      <action android:name="android.intent.action.SCAN" />
      <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
   </activity>