Rectangle used in ZXING Library for scanning QR code is not centerd
I have requirement in which I need to scan the QR code using ZXING library in Android application. I have added complete ZXING code in my project and written following code for opening camera for QR code scanning.
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, 0);
the rectangle used to scan QR code on camera isn't at center? re开发者_高级运维ctangle is coming at bottom right corner. I haven't changed any code from ZXING library. Can anybody help me out for this solution to get that rectangle in Centered?
PS, developer here, this was fixed (or rather, workaround) about a month ago in the source tree. A version 4.0 is going to be released shortly that contains the change. A beta version is here: http://code.google.com/p/zxing/downloads/list
The problem is that some devices think they are in landscape mode at creation, even when the app is landscape-only. It's a platform or device problem but easily worked around.
精彩评论