Skip to content

Commit 2bc0250

Browse files
Revert "Preview (#363)" (#364)
This reverts commit 55d4637.
1 parent 55d4637 commit 2bc0250

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+894
-229
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
layout: default-layout
3+
title: Use Debug Mode - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile demo, debug, android
5+
description: How to use Debug Mode in Barcode Scanner X? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How to use Debug Mode in Barcode Scanner X?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
14+
## Debug Mode in BarcodeScannerX
15+
16+
If you are experiencing app crashes in your own application or you’ve come across some barcode(s) that you can’t read and you have exhausted all of the other troubleshooting methods, Debug Mode of the [BarcodeScannerX](https://www.dynamsoft.com/barcode-reader/sdk-mobile/#appDemo) demo app can help offer one last effort to resolve these issues.
17+
18+
This next section will explain how to toggle on debug mode on the demo app, and will then dive into how to collect crash logs and/or image samples.
19+
20+
1. From the home screen, go to Advanced Scan.
21+
22+
<img src="../../assets/home_screen.jpg" alt="Home screen" width="50%" height="50%">
23+
24+
2. Tap the settings icon at the top-right corner.
25+
26+
<img src="../../assets/advanced_scan.jpg" alt="Advanced scan" width="50%" height="50%">
27+
28+
3. Tap Debug Mode to see the drop-down list.
29+
30+
<img src="../../assets/debug_mode.jpg" alt="Debug mode" width="50%" height="50%">
31+
32+
## Debug Mode - Crash Logger
33+
34+
If you are encountering an app crash caused by Dynamsoft Barcode Reader or Dynamsoft Camera Enhancer SDK, you need to use the Crash Logger.
35+
36+
1. Toggle on Crash Logger
37+
38+
<img src="../../assets/crash_toggle_on.jpg" alt="Crash toggle on" width="50%" height="50%">
39+
40+
2. After Crash Logger is toggled on, please go ahead and scan codes until you reproduce the crash issue.
41+
42+
3. After the app crashes, re-open BarcodeScannerX app and go to Advanced Scan -> settings. Tap the "Share" button to share the log files with the [Dynamsoft support team](https://www.dynamsoft.com/contact/?ver=latest).
43+
44+
<img src="../../assets/crash_share.jpg" alt="Crash share" width="50%" height="50%">
45+
46+
## Debug Mode - Image Cropper
47+
48+
If you are having trouble reading barcodes, you should use the Image Cropper to capture some sample image(s) or frame(s) and send them to the Dynamsoft Support Team:
49+
50+
1. Toggle on Image Cropper
51+
52+
<img src="../../assets/image_cropper_toggle.jpg" alt="Image crop toggle on" width="50%" height="50%">
53+
54+
2. After Image Cropper is toggled on, an image crop icon will show up at the bottom left of Advanced Scan
55+
56+
<img src="../../assets/crop.jpg" alt="crop" width="50%" height="50%">
57+
58+
3. Tap the image crop icon to crop and share the original frames with the [Dynamsoft support team](https://www.dynamsoft.com/contact/?ver=latest). Our support team will investigate the video frames and get back to you with a solution as soon as possible.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default-layout
3+
title: One-off barcode scanning - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, android, continuous scanning, disable
5+
description: How can I implement continuous barcode scanning and one-off barcode scanning? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How can I implement continuous barcode scanning and one-off barcode scanning?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Please take advantage of the <a href="https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/index.html?ver=latest" target="_blank">samples</a>. The <a href="https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/helloworld.html?ver=latest" target="_blank">Hello World</a> sample is the typical One-off scanning sample. The <a href="https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/general.html" target="_blank">GeneralSettings</a> sample is the typical continuous scanning sample.
14+
15+
If you encounter any issues with this feature, please contact the Dynamsoft support team for help.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default-layout
3+
title: Read Driver's License - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, android, driver license, info
5+
description: Can I extract the driver’s information from a PDF417 barcode? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Can I extract the driver’s information from a PDF417 barcode?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
View the [DriversLicenseScanner sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DriversLicenseScanner){:target="_blank"} for how to decode the PDF417 barcode on the driver's license and parse the driver's information.
14+
15+
> `DynamsoftCodeParser` library is included in the sample to parse the driver's information from the barcode decoding result. A valid license is required for the `DynamsoftCodeParser` library.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: default-layout
3+
title: QR Code Model 1 - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile demo, QR code, model 1, ios
5+
description: How an I enable QR Code Model 1 support in BarcodeScannerX? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How an I enable QR Code Model 1 support in BarcodeScannerX?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Nowadays, most QR codes are QR code Model 2. BarcodeScannerX, by default, only support QR code Model 2. If you want to test QR code Model 1 on BarcodeScannerX, here is what you can do:
14+
15+
1. Visit Dynamsoft barcode reader <a href="https://demo.dynamsoft.com/barcode-reader/" target="_blank">online demo</a>.
16+
2. Click on Advanced Settings
17+
18+
<div align="left">
19+
<p><img src="../../assets/advanced-settings.jpg" width="40%" alt="advanced settings"></p>
20+
</div>
21+
22+
3. Check **EnableQRCodeModel1**.(You can modify any other settings as you like)
23+
4. Save the template.
24+
25+
<div align="left">
26+
<p><img src="../../assets/save-template.jpg" width="40%" alt="save template"></p>
27+
</div>
28+
29+
5. Send the template to <a href="https://www.dynamsoft.com/contact/?ver=latest" target="_blank">Dynamsoft support team</a>.
30+
6. We will generate and send a link to you.
31+
7. Click **Import Template** in the Advanced Scan settings of BarcodeScannerX. Then input the link.
32+
8. Now you can scan QR code Model 1!

programming/android/faq/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ Alternatively, here is the general troubleshooting steps:
9292

9393
View the [DriversLicenseScanner sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DriversLicenseScanner){:target="_blank"} for how to decode the PDF417 barcode on the driver's license and parse the driver's information.
9494

95-
<div class="blockquote-note"></div>
96-
> Parsing the driver's information is an additional feature that requires a [DCV license](https://www.dynamsoft.com/customer/license/trialLicense/?product=cvs&utm_source=github&package=mobile){:target="_blank"}.
95+
> Note: Parsing the driver's information is an additional feature that requires a [DCV license](https://www.dynamsoft.com/customer/license/trialLicense/?product=cvs&utm_source=github&package=mobile){:target="_blank"}.
9796
9897
## Can I reduce the size of the final Android app?
9998

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default-layout
3+
title: Minimum System Requirements - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, android, requirements
5+
description: What are the Minimum System Requirements of Dynamsoft Barcode Reader Android? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# What are the Minimum System Requirements of Dynamsoft Barcode Reader Android?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
For Android, DBR supports the following:
14+
15+
* Supported OS: Android 5.0 (API Level 21) or higher
16+
17+
* Supported ABI: armeabi-v7a, arm64-v8a, x86 and x86_64
18+
19+
* Supported Java Version: Java 8
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: default-layout
3+
title: Use CameraX or third-party camera modules - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, android, requirements
5+
description: How can I use CameraX or third-party camera modules with Dynamsoft Barcode Reader? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How can I use CameraX or third-party camera modules with Dynamsoft Barcode Reader?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
## CameraX
14+
15+
If you are using the CameraX, you can view [HelloWorld/DecodeWithCamerX sample](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples/DecodeWithCameraX) for a quick start.
16+
17+
## Third-Party Camera Module
18+
19+
If you are using a third-party camera module, what you have to do is:
20+
21+
- Create a class that extends [ImageSourceAdapter]({{ site.dcvb_android_api }}core/basic-structures/image-source-adapter.html). In this class, you need to implement the video capture features and the [`getImage`]({{ site.dcvb_android_api }}core/basic-structures/image-source-adapter.html#getimage) method of [`ImageSourceAdapter`]({{ site.dcvb_android_api }}core/basic-structures/image-source-adapter.html).
22+
- Create an instance of your camera class.
23+
- Create an instance of the [`CaptureVisionRouter`]({{ site.dcvb_android_api }}capture-vision-router/multiple-file-processing.html) class. Then trigger the [`setInput`]({{ site.dcvb_android_api }}capture-vision-router/multiple-file-processing.html#setinput) method with the instance of your camera class as the parameter.
24+
- Trigger the [`startCapturing`]({{ site.dcvb_android_api }}capture-vision-router/multiple-file-processing.html#startcapturing) method to start the barcode decoding.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default-layout
3+
title: Solve Page Freeze - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, Android, freeze, page
5+
description: Why does the page sometimes freeze when I start the scanner? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Why does the page sometimes freeze when I start the scanner?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Before a barcode reader instance can be created, a one-time connection for license validation needs to occur when the app initializes (or whenever the license is set before the barcode reader instance creation). Sometimes, this license validation could take a second to complete.
14+
15+
A potential "freeze" of the page can occur if `BarcodeReader.initLicense()` is called multiple times in a single process. Please make sure that `initLicense` is called only once in your code.
16+
17+
To help troubleshoot whether the method is being called multiple times, we recommend stepping through the code using a debugger.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default-layout
3+
title: Proguard Instructions - Dynamsoft Barcode Reader Android FAQ
4+
description: This page shows how to configure proguard-rules file of your project. - DBR Android FAQs.
5+
keywords: Proguard, android
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
noTitleIndex: true
9+
---
10+
11+
# How to prevent project build failure after shrinking code?
12+
13+
[<< Back to FAQ index](index.md)
14+
15+
This page provides you a possible solution when your project build fails after implementing the code obfuscation.
16+
17+
Generally, you don't have to add any configurations when shrinking your code because **proguard rule** is already configured in the aar. However, if you still build failed after shrinking code, you can try to add the following code in the **proguard-rule.pro** file of your project.
18+
19+
```bash
20+
-keep class com.dynamsoft.dbr.** { *; }
21+
# Uncomment the following line when your project use Dynamsoft Camera Enhancer as well.
22+
#-keep class com.dynamsoft.dce.** { *; }
23+
-keepclasseswithmembernames class * {
24+
native <methods>;
25+
}
26+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default-layout
3+
title: Reduce battery consumption - DBR Android FAQs.
4+
keywords: Dynamsoft Barcode Reader, FAQ, Mobile, tech basic, Android, battery, consumption
5+
description: How can I reduce battery consumption? - DBR Android FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How can I reduce battery consumption?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
If you are finding that the battery of your phone is being heavily consumed when using the Barcode Reader, there are a couple of things that you can do to potentially reduce the battery consumption, depending on the usage situation.
14+
15+
For a non-continuous video scanning scenario, make sure to call the [stopCapturing]({{ site.dcvb_android_api }}capture-vision-router/multiple-file-processing.html#stopcapturing) method when the video scanning is no longer required.
16+
17+
For a continuous video scanning scenario, configure the [minImageCaptureInterval]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/simplified-capture-vision-settings.html) attribute of `SimplifiedCaptureVisionSettings` class to set a higher value for the interval in order to reduce the frequency of fetching frames, thus reducing the number of scans per unit time, and thus, less resources needing to be consumed. You can dynamically adjust `minImageCaptureInterval` as needed to achieve the performance you are looking for.

0 commit comments

Comments
 (0)