zxing

Pass extra data with zxing scanning intent

耗尽温柔 提交于 2021-02-10 18:17:37
问题 I'm integrating a barcode scanner using https://github.com/zxing. I would like to pass some additional data - uuid below - along with the barcode. Both uuid1 and uuid2 below yields null . WHat am I missing? public void startScanner(String uuid){ IntentIntegrator integrator = new IntentIntegrator(this); integrator.setDesiredBarcodeFormats(IntentIntegrator.PRODUCT_CODE_TYPES); integrator.setPrompt(""); integrator.setCameraId(0); integrator.setBeepEnabled(false); Intent intent = integrator

Android - Barcode Fragment result not displaying

蓝咒 提交于 2021-02-10 13:36:29
问题 [SOLVED] The apps work fine without crash, but it should be update the resultView text from "Hasil Scan" to the scan result, but it doesnt. The problem are the textview (resultView) are not updated after scan. Im using DM77 Zxing barcode scanner. Here is the code i have done so far. MainActivity: import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v4

Android - Barcode Fragment result not displaying

懵懂的女人 提交于 2021-02-10 13:36:18
问题 [SOLVED] The apps work fine without crash, but it should be update the resultView text from "Hasil Scan" to the scan result, but it doesnt. The problem are the textview (resultView) are not updated after scan. Im using DM77 Zxing barcode scanner. Here is the code i have done so far. MainActivity: import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v4

Could not find method compile()

故事扮演 提交于 2021-02-08 03:41:27
问题 I want to add a lib in android studio but it is not working. Here is a screenshot I also tried to add a dependency in the gradle.build but that also does not work. Maybe it is because I am behind a proxy ? 回答1: You are using the wrong build.gradle file. You can't use compile in the top-level file. Use the module/build.gradle . <PROJECT_ROOT>\app\build.gradle is specific for app module . <PROJECT_ROOT>\build.gradle is a "Top-level build file" where you can add configuration options common to

how to start Zxing on a Fragment?

孤街浪徒 提交于 2021-02-06 09:28:08
问题 i have an activity that holds Two Fragments, i want to run ZXING scanner on one of the fragments, currently i do this on another activity like this > new IntentIntegrator(this).initiateScan(); // opens up Scan intent > ZXING how do i do that line but to open up the scan on a fragment ? Also i get the ZXING results on a reciever like this > //results when activity enters a callback sent out to another activity public void onActivityResult(int requestCode, int resultCode, Intent intent) { how

Selenium in Java stops working with java.lang.IllegalAccessError:from class org.openqa.selenium.net.UrlChecker when ZXing dependency is added

非 Y 不嫁゛ 提交于 2021-02-05 05:29:08
问题 So, I'm building a test project on java using Selenium, with gradle. Right now I need to scan a QR Code from a previously taken screenshot. I looked around how to do it, and the ZXing scanner code seems like the best suggestion. (Please let me know if it isn't.) My problem is, from the moment I add the 'com.google.zxing:zxingorg:3.3.1' dependency to my build.gradle file, even if I don't write any additional code with it (I've tried with and without), the web driver stops working, and I get

Selenium in Java stops working with java.lang.IllegalAccessError:from class org.openqa.selenium.net.UrlChecker when ZXing dependency is added

可紊 提交于 2021-02-05 05:28:26
问题 So, I'm building a test project on java using Selenium, with gradle. Right now I need to scan a QR Code from a previously taken screenshot. I looked around how to do it, and the ZXing scanner code seems like the best suggestion. (Please let me know if it isn't.) My problem is, from the moment I add the 'com.google.zxing:zxingorg:3.3.1' dependency to my build.gradle file, even if I don't write any additional code with it (I've tried with and without), the web driver stops working, and I get

Find QR code in image and decode it using Zxing

喜你入骨 提交于 2021-02-04 12:11:26
问题 First of all, I read through all those topics how to use Zxing in Java but always got errors with missing com.google.zxing.client.j2se.* (I loaded the zxing core-3.2.1.jar in eclipse and all other zxing packages work unless j2se) or just found solutions for creating qr images... My aim is to write one single method which gets an image file finds the qr code in this image, decodes the qr code and returns the string, basically it should be something like the following: import com.google.zxing.*

How to flip Camera used by ZXing in Xamaring Forms

空扰寡人 提交于 2021-01-29 14:14:04
问题 As part of the app i'm developing i want the ability to change between using the front or back camera, but from my searches and attempts i haven't been able to get it to work using the front camera. The scanner view doing the scanning is the one from ZXing.Net.Mobile.Forms called ZXingScannerView, defined in my xaml like so, together with the button that should do the flipping of the camera. <elements:AdvancedTabbedPage ... xmlns:elements="clr-namespace:Wolf.Utility.Main.Xamarin.Elements

How to create and implement a Android CustomOverlay for ZXing Scanner?

有些话、适合烂在心里 提交于 2021-01-29 08:53:29
问题 I'm using ZXing barcode scanner plugin for my Xamarin.Forms project. According to some posts, I need to use custom overlay for ZXing scanner in order to have cancel button. But I'm not familiar with Android development in a Xamarin.Forms project. So far, I know a scanner (MobileBarcodeScanner of ZXing plugin) accept an Android.Views.View as an overlay to replace the default scanning page view. public async Task<string> ScanAsync() { MobileBarcodeScanner scanner = new MobileBarcodeScanner();