question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scan QR code in portraits mode

See original GitHub issue

I need to scan QR Code in portraits mode. I used DecoratedBarcodeView for portraits mode but it scans all types of barcode. Is it possible to scan only QR Code. I tried Intent intent = new Intent(); intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); barcodeScannerView.initializeFromIntent(intent); barcodeScannerView.decodeContinuous(callback); where barcodeScannerView is object of DecoratedBarcodeView. Is this the correct way to do it?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Aks-4125commented, Mar 22, 2018

implementation 'com.journeyapps:zxing-android-embedded:3.6.0'

Add following in AndroidManifest.xml

<activity android:name="com.journeyapps.barcodescanner.CaptureActivity" android:screenOrientation="portrait" tools:replace="screenOrientation" />

0reactions
PassionateDevelopercommented, Jul 26, 2017

Please provide this function to scan only QRcode / Barcode / Qr-Barcode both. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Want to Scan Barcode or QRcode in portrait mode in android
Today I am going to write blog on how to scan Barcode or Qrcode in portrait mode using Zxing library. Followings steps are...
Read more >
How to use Zxing in portrait mode? - Stack Overflow
it is possible to scan barcode in portrait mode but it will take longer because it need more time to process data from...
Read more >
Scan Barcode in Portrait mode using Zxing Library - YouTube
Recorded with ScreenCastify (https://www.screencastify.com), the screen video recorder for Chrome.
Read more >
Zxing integration with Android in portrait mode - YouTube
Zxing integration portrait mode. ... How to Make a QR Code Scanner in Jetpack Compose - Android Studio Tutorial. Philipp Lackner.
Read more >
I am not able to scan barcode in the Landscape mode on mobile
I am not able to scan the multi-format barcode on the landscape mode of the mobile, ... However, it is working fine in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found