Skip to content

Camera Scanning in Portrait Mode #641

Answered by rkistner
karan2vel asked this question in Q&A
Discussion options

You must be logged in to vote

In your code you are defining the orientation for your application's MainActivity. You need to specify it for the library's CaptureActivity instead, as in the example from the readme:

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karan2vel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #640 on June 16, 2021 14:07.