Activation of the Vertical Bar Code Reader - Zxing

0

I developed an android application where it activates the barcode reader to read product barcodes.

What I find strange is that when you turn on the scanner it changes the position to horizontal ie the scanner lies.

How do I leave his orientation upright without changing orientation?

    
asked by anonymous 27.03.2018 / 13:25

2 answers

1

Guidance is enforced by the Activity used to read the code.
In her statement, in Manifest.xml , android is used: screenOrientation=" sensorLandscape .

As this Activity is part of Zxing, you can not (and should not) change it.

    
04.04.2018 / 22:18
-1

Places the reader's activity into portrait.

android:screenOrientation="portrait"
    
04.04.2018 / 21:57