Re: Trying to implemate zxing - crazy error in CaptureActivity

79 views
Skip to first unread message

Sean Owen

unread,
Oct 25, 2012, 11:13:13 AM10/25/12
to zx...@googlegroups.com
Looks like you have a portrait-mode layout but are not setting the camera orientation properly. It's really up to you.. the app is landscape only.

alex_joe

unread,
Oct 25, 2012, 11:21:09 AM10/25/12
to zx...@googlegroups.com
Hey Sean Owen, thanks for your quick answer. Is there any posibility to use it in a portrait-mode? Is it as simple as i have just to implement a capute.xml layout file on my own?

Sean Owen

unread,
Oct 25, 2012, 4:49:46 PM10/25/12
to zx...@googlegroups.com
It's not nearly as simple as a portrait layout, no. You will have as much fun as I did in creating Barcode Scanner+, and dealing with all combinations of orientations, front/rear cameras, and device bugs, if you want this to work!

Most of the battle is knowing how to correctly detect the camera's orientation relative to the device's native orientation, and the device's current orientation. It boggled my mind for days, but maybe you are smarter. But yes you must call methods to set the orientation correctly or you get stuff like this.
Reply all
Reply to author
Forward
0 new messages