barcode-scanner

Scan barcode from an image in gallery android

蹲街弑〆低调 提交于 2019-12-03 12:42:42
问题 I'm creating a android project, main feature is scan barcode. I'm tried integrate with Zxing library into my project, and it's work fine. However, it's seems not support scan barcode from an available image in gallery of android devices. How i can do it ? or with other barcode library ? Please help me. Thanks for all answers. 回答1: You could use this class MultiFormatReader from ZXing library. You have to get Gallery image in BitMap and convert it as this: Bitmap bMap = [...]; String contents

Listen to keypress in HTML/JavaScript on iOS/Safari with Bluetooth Scanner/Keyboard without having to focus a field

不羁岁月 提交于 2019-12-03 09:38:18
问题 I have the following setup: iPad with Safari browser running a webb-application. Bluetooth barcode-scanner connected/paired with the iPad. My web-application listens to keypress events globally which gives me the possibility to trigger scan functions without having the user to focus a textfield in the webb-application. The above works fine when running the application on a desktop with an USB-scanner. My problem is that the application doesn't trigger keydown(press/up) events until a

ZXing Android Generate 1D barcode

一笑奈何 提交于 2019-12-03 07:03:05
I've gone through the examples here regarding encoding barcode: http://code.google.com/p/zxing/source/browse/trunk/androidtest/src/com/google/zxing/client/androidtest/ZXingTestActivity.java But all it generates are QR. I'm looking for 1D barcode generation / encoding . What's the right encode type? Intent intent = new Intent("com.google.zxing.client.android.ENCODE"); intent.setPackage("com.google.zxing.client.android"); intent.putExtra("ENCODE_TYPE", "???"); Barcode Scanner doesn't like ENCODE_TYPE = CODE_39 nor CODE_93. Any ideas? You need the javadoc for Intents . You need ENCODE_FORMAT ,

zxing integration into monodroid app

时光怂恿深爱的人放手 提交于 2019-12-03 03:34:27
I'm trying to integrate ZXing's barcode scanner into a MonoDroid application. I see that normal Android (java) apps have IntentIntegration.java and IntentResult.java to include into their project to help. I was wondering if anyone has ported those to .NET (I didn't see them ported in the csharp project.)? I'm also wondering if anyone has implemented ZXing in another way to get to work with their app? If anyone has integrated with MonoDroid, what needs to be done to initiate a scan in a button click handler? Also, if anyone has any other 3 party barcode scanner that could be implemented instead

How to use ZXing library without installing barcodescanner app

烈酒焚心 提交于 2019-12-03 03:20:21
I have been developing an android app to scan the barcode and QR code and send the results to some other application (HTTP). I have read most of the documentation over internet and here in stack over flow and got it working. I could able to run the stand alone zxing android app on my device, also I could run my own separate android app to use Zxing intent to scan the bar code. But even after reading so many questions here and some of the blogs in internet, I could not get my strict requirements. I want to achieve following things. 1. I do not want to install a separate barcode scanner app in

Scan barcode from an image in gallery android

我们两清 提交于 2019-12-03 03:09:44
I'm creating a android project, main feature is scan barcode. I'm tried integrate with Zxing library into my project, and it's work fine. However, it's seems not support scan barcode from an available image in gallery of android devices. How i can do it ? or with other barcode library ? Please help me. Thanks for all answers. You could use this class MultiFormatReader from ZXing library. You have to get Gallery image in BitMap and convert it as this: Bitmap bMap = [...]; String contents = null; int[] intArray = new int[bMap.getWidth()*bMap.getHeight()]; //copy pixel data from the Bitmap into

Barcode scanner for html5 and jquery application

混江龙づ霸主 提交于 2019-12-03 01:32:29
问题 I am using Jquery and html for a project. It is a static web application. I need a jquery that reads barcode scanner's barcode from products. The barcode need to be scanned without displaying the code in any of the textbox in the screen. Someone please gibe me some ideas or provide me the link for plugins (if any) to overcome this. Thanks in advance. 回答1: Try this code. I assum that you know about the Jquery. Run this code and type anything from the keyboard while focusing the web page and

When is it allowable to call `BarcodeScanner.GetDefaultAsync()`?

孤街浪徒 提交于 2019-12-02 15:01:31
问题 I am trying to use the new Windows 8.1 Point of Service API for Barcode Scanners, and if I call GetDefaultAsync() from any of the following locations, it returns null . App.OnLaunched The first page .Loaded The first page OnNavigatedTo The first page constructor This doesn't seem to be an issue with DeviceCapabilities or drivers, as it will work perfectly if I call it from: A button Click event handler The first page's OnGotFocus The first page's constructor if wrapped in: this.Dispatcher

Barcode scanner for html5 and jquery application

一个人想着一个人 提交于 2019-12-02 14:58:29
I am using Jquery and html for a project. It is a static web application. I need a jquery that reads barcode scanner's barcode from products. The barcode need to be scanned without displaying the code in any of the textbox in the screen. Someone please gibe me some ideas or provide me the link for plugins (if any) to overcome this. Thanks in advance. Try this code. I assum that you know about the Jquery. Run this code and type anything from the keyboard while focusing the web page and hit enter key. If this works barcode reader do the same. Configure your barcode reader to pass enter key at

Android ZXing implementation

元气小坏坏 提交于 2019-12-02 14:22:45
问题 I created a project with the ZXing source code. That works fine. After I changed the package name com.google.zxing.client.android to com.google.zxing.client.android.vofox But it shows error in real device (HTC Wildfire) It has no error in eclipse emulator. My logcat file shown below. 08-23 17:13:58.899: ERROR/AndroidRuntime(9816): FATAL EXCEPTION: main 08-23 17:13:58.899: ERROR/AndroidRuntime(9816): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.zxing.client