Vertical Barcode Reader Activation - Zxing

Asked

Viewed 190 times

0

I developed an android application where activates the barcode reader to read barcode products.

What I’m finding strange is that when activating the scanner it changes its position to horizontal, that is, the reader is lying down.

How do I leave his orientation upright without changing his orientation ?

2 answers

1

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

As this Activity is part of Zxing has no way to (should not) change it.

-1

Puts the reader’s Activity on Portrait.

android:screenOrientation="portrait"
  • It won’t work, look at mine reply

Browser other questions tagged

You are not signed in. Login or sign up in order to post.