Reputation: 4761
I am developing an application which reads QR codes. So I used zxing library for reading QR codes. I successfully read a QR code in my application.
The problem is that when I start my application in landscape mode, the zxing camera works fine, but when I rotate my device to portrait mode, the camera remains in landscape mode – ie tilted 90 degrees.
I use the Android project from zxing 2.1 as a library project in my app.
What should I do in order to be able to use the application in both orientations?
Upvotes: 0
Views: 1031
Reputation:
Dont change in library. And dont use intent code. Just call library. Then it works fine.
Upvotes: 1