Scanning Service Usage
This documentation is crafted to aid Android application developers for the Smart POS. It clarifies the functionality of the scanning service and provides details on the released SDKs, testing applications, and features for quickly launching the scan application. For specific downloads and further information, refer to the provided links and sections.
OverView
The scanning service enables Android devices equipped with imaging hardware, such as cameras, to scan barcodes or QR codes, retrieving encoded data. This encoded information typically includes a web address, geographic coordinates, small text excerpts, and commercial product codes. The service is designed to provide an Application Interface Definition Language (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
Quickly Launch the Scan Application in Q2/Q3
Physical Action: Double-click the power button.
This feature enables the swift launch of the scan application. Upon clicking, the system searches for all installed applications and launches the one with the scan intent-filter. If multiple applications exist, the system presents a list for users to choose from, initiating the selected application. The code for the scan intent-filter is as follows:
<action android:name="android.intent.action.SCAN" /> <category android:name="android.intent.category.DEFAULT" />
If no application in the system defines the scan intent-filter, pressing will not work. For instance, to use the scan button effectively, the application must define the scan intent-filter in its Android manifest file, with the category and action 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>