You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Build and Run the Project](#build-and-run-the-project)
25
+
26
+
## Requirements
27
+
28
+
- Supported OS: Android 5.0 (API Level 21) or higher.
29
+
- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**.
30
+
- Development Environment: Android Studio 3.4+ (Android Studio 4.2+ recommended).
31
+
32
+
## Add the Libraries
33
+
34
+
The Dynamsoft Code Parser (DCP) Android SDK comes with four libraries:
35
+
36
+
| File | Description |
37
+
|---------|-------------|
38
+
|`DynamsoftCodeParser.aar`| The Dynamsoft Code Parser library, which includes code parsing logic and related APIs. |
39
+
|`DynamsoftCore.aar`| The core library, which includes common basic structures and intermediate result related APIs. |
40
+
|`DynamsoftLicense.aar`| The license library, which includes license related APIs. |
41
+
|`DynamsoftCodeParserDedicator.aar`| The code parser helper library, which includes some validation functions used by the SDK.|
42
+
43
+
There are two ways to add the libraries into your project - **Manually** and **Maven**.
44
+
45
+
### Add the Libraries Manually
46
+
47
+
1. Download the SDK package from the <ahref="https://www.dynamsoft.com/survey/dlr/?utm_source=docs"target="_blank">Dynamsoft Website</a>. After unzipping, four **aar** files can be found in the **Dynamsoft\Libs** directory:
48
+
49
+
-**DynamsoftCodeParser.aar**
50
+
-**DynamsoftCore.aar**
51
+
-**DynamsoftLicense.aar**
52
+
-**DynamsoftCodeParserDedicator.aar**
53
+
54
+
2. Copy the above seven **aar** files to the target directory such as `[App Project Root Path]\app\libs`
55
+
56
+
3. Open the file `[App Project Root Path]\app\build.gradle` and add the reference in the dependencies:
>-The license string here grants a time-limited free trial which requires network connection to work.
134
+
>-You can request for a 30-day trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?product=dlr&utm_source=guide&package=android" target="_blank">CustomerPortal</a>.Offline trial license is also available by <a href="https://www.dynamsoft.com/contact/" target="_blank">contacting us</a>.
135
+
>-If you download the <a href="https://www.dynamsoft.com/survey/dlr/?utm_source=docs" target="_blank">InstallationPackage</a>, it comes with a 30-day trial license by default.
136
+
137
+
### InitializeCodeParserAndParse the CodeBytes
138
+
139
+
1.Import and initialize the `CodeParser`.
140
+
141
+
```java
142
+
importcom.dynamsoft.dcp.CodeParser;
143
+
publicclassMainActivityextendsAppCompatActivity {
144
+
privateCodeParser mParser;
145
+
@Override
146
+
protectedvoidonCreate(BundlesavedInstanceState) {
147
+
...
148
+
mParser =newCodeParser(this);
149
+
}
150
+
}
151
+
```
152
+
153
+
2.In the Project window, open **app > res > layout > `activity_main.xml`**, create a "Parse" button control under the root node.
0 commit comments