目录

Getting Started

Quick Tutorial

Before developing your app, you can follow instructions in the codelab to experience how to quickly integrate Scan Kit into an app.

Development Environment

Development Process

Follow the steps in the following process when you develop an app.

No.

Step

Description

1

Configuring App Information in AppGallery Connect

Configure app information in AppGallery Connect, including Registering as a Developer and Creating an App.

2

Integrating the HMS Core SDK

Integrate the HMS Core Scan SDK into your app.

3

Configuring Obfuscation Scripts

Before building the APK, configure the obfuscation configuration file to prevent the HMS Core Scan SDK from being obfuscated.

4

Adding Permissions

Declare the required permissions in the AndroidManifest.xml file.

5

Building Scanning Capabilities

Call Scan Kit using one of the following modes: Default View for single-barcode scanning, MultiProcessor Mode for synchronous detection of barcodes, Bitmap for scanning barcodes using the camera or from images, and Customized View that allows for customizing the scanning UI. For details, see Available Modes to Call Scan Kit.

6

Building the Barcode Generation Function

Convert character strings into 1D or 2D barcodes in 13 formats, including EAN-8, EAN-13, UPC-A, UPC-E, Codabar, Code 39, Code 93, Code 128, ITF-14, QR Code, DataMatrix, PDF417, and Aztec.

7

Parsing Barcodes

Parse barcode information in the input image. The information includes the barcode coordinates, original data, format, structured data, zoomValue, and more.

8

Pre-release Check

Use the tool offered by Huawei to automatically check your app before release.

9

App Release

Complete your app information in AppGallery Connect, and submit your app for release.

HMS Toolkit provides end-to-end tools (including those for app creation, free real-device debugging, and releasing) that you need to develop your own HMS Core-integrated app and release it, with lower costs and higher efficiency.

Click here to learn about the best practice for using HMS Toolkit to integrate this kit.