zxing

Eclipse Android Project Throws Class Not Found Error During Runtime

浪尽此生 提交于 2019-12-25 16:48:14
问题 I am trying to incorporate ZXing into my own android app via intent, and am having difficulty. I can compile my code fine, but when it tries to call the following after a button click it dies on the IntentIntegrator() constructor: public void ScanCheck(View view){ try{ IntentIntegrator integrator = new IntentIntegrator(MainActivity.this); integrator.initiateScan(); }catch(Exception e){ return; } } the above code is verbatim and MainActivity is the name of my class. I typically program in C#

Decoding colored image using ZXing library in Java

不打扰是莪最后的温柔 提交于 2019-12-25 07:49:26
问题 I am trying to decode a colored QR code in Java with ZXing library. From some research, I know that ZXing already has the ability to do this. But i have been doing this for 2 days and what i have done is trying to read a QR image from a file and calculating the darkest and brightest color in the image. Then change every foreground pixel to black and others to white. After this I will get a QR code just like the standard ones. Then use a function to read the QR code: However, this only works

Launching a QR scanner from Android web view and returning the scanned result using Xamarin

拥有回忆 提交于 2019-12-25 07:39:50
问题 I have this Xamarin application that launches a QR scanner when a button is clicked. This button click is handled in Javascript. When the button is clicked, below C# code gets called. This supposed to launch the QR scanner and once the value is scanned, the scanned value is returned to a Javascript function. But as soon as the button to scan QR code is clicked, web view app gets to the background but camera is not launched to scan the QR code. public class QRScannerJSInterface : Java.Lang

GS1 structure data parsing using the ZXing barcode library

不羁的心 提交于 2019-12-25 07:29:15
问题 I am looking to use the ZXing library to decode GS1 DataBar barcode symbols. I will not be getting the barcode bitmap, all I receive is the content of the barcode, e.g.: 8110106141416543213500110000310123196000 . Can you tell me whether ZXing has a method that can decode the barcode's structured data? I have tried looking at all the methods out there but I didn't find anything appropriate. 回答1: As far as I know Zxing does not provide a GS1 structured data parsing feature. You may need to

GS1 structure data parsing using the ZXing barcode library

 ̄綄美尐妖づ 提交于 2019-12-25 07:28:23
问题 I am looking to use the ZXing library to decode GS1 DataBar barcode symbols. I will not be getting the barcode bitmap, all I receive is the content of the barcode, e.g.: 8110106141416543213500110000310123196000 . Can you tell me whether ZXing has a method that can decode the barcode's structured data? I have tried looking at all the methods out there but I didn't find anything appropriate. 回答1: As far as I know Zxing does not provide a GS1 structured data parsing feature. You may need to

Integrating Zxing Barcode scanner to my android app

眉间皱痕 提交于 2019-12-25 07:26:52
问题 I'm trying to integrate barcode scanner in my android app. These are the things i have done: 1) i added core-3.2.1 module to my project. 2) added an activity <uses-permission android:name="android.permission.CAMERA" /> <activity android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" > </activity> I'm getting that Cannot resolve symbol 'CaptureActivity'. What should i do more? I have checked other stackoverflow posts but i'm unable to fix this. 回答1

How to make the ZXing scan using the front camera not the back camera in Android?

落花浮王杯 提交于 2019-12-25 07:17:59
问题 I am using the ZXing by the following code ContinuousCaptureActivity, and the zxing using (by default) the back camera to scan, how to make it scan using the front camera ? 回答1: set extra SCAN_CAMERA_ID to the ID of the camera you want usually 1 for the front one. for example intent.putExtra("SCAN_CAMERA_ID", 1); 来源: https://stackoverflow.com/questions/40141833/how-to-make-the-zxing-scan-using-the-front-camera-not-the-back-camera-in-android

DDMS Debugging: Android app (I'm developing) causes device (ONLY Nexus 5) to hang and must restart when using ZXING and Dialog

痴心易碎 提交于 2019-12-25 05:17:10
问题 I'm developing an android app. I'm using ZXING fragment open source barcode scanning. I have an option to manually input the barcode. So when the user press the manual input button I open a dialog with edit text. Before the dialog appears I pause the camera and scanning. This causes the device to hang, the top bar multiples it self adding it self more and more times until it fills the display. The only way to get out of this situation is to restart the device. This bug only reproduce in Nexus

Integrate ZXing without the use of a 3rd party scanner?

自古美人都是妖i 提交于 2019-12-25 01:49:03
问题 I've read numerous topics already where people asked how to integrate ZXing in an Android application where they necessarily need to have a 3rd party scanner app installed in order to scan a QR Code. That's exactly what i want to do too. This is what i have done so far: I downloaded the ZXing project. I copied all the relevant source code to my Android application. So far so good, it all compiles fine. When i press on a button in my app it opens a small dialog asking what barcode scanner i

Android- Zxing Scanner Add Preview in the centre

早过忘川 提交于 2019-12-25 01:14:40
问题 I'm using Zxing library in Android, Camera Activity is showing correct width and height of scan area but it is not showing in the middle of the screen. Camera Scan area should be added in the middle. Please guide how to fix it. I have attached screenshot of the issue. I have added Camera Manager class below. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/51QiN.jpg **CameraManager Class** public final class CameraManager { private static final String TAG = CameraManager