Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

add tips for HUAWEI mobile to README #366

Merged
merged 1 commit into from
Sep 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ void startCamera(int cameraId);

Specify front-facing or rear-facing cameras by using the `void startCamera(int cameraId);` method.


For HUAWEI mobile phone like P9, P10, when scanning using the default settings, it won't work due to the
"preview size", please adjust the parameter as below:

```java
mScannerView = (ZXingScannerView) findViewById(R.id.zx_view);

// this paramter will make your HUAWEI phone works great!
mScannerView.setAspectTolerance(0.5f);
```

Supported Formats:

```java
Expand Down