barcode-scanner

Cordova barcode scanner on Android - cancel scan and return to app

十年热恋 提交于 2019-12-12 16:55:15
问题 We have a Cordova app, intended for Android devices, which uses the bar code scanner plugin. The app itself as an overwrite to the default Android back button upon device ready: document.addEventListener("backbutton", onBackKeyDown, false); The issue is that when the user cancels the scan by pressing the back button, The camera closes and the app display the webview, and then launches the "backbutton" event (i.e. invoking the onBackKeyDown function). As if the back button was pressed on the

Is a checksum required in the Code128 barcode specification?

…衆ロ難τιáo~ 提交于 2019-12-12 13:29:48
问题 Introduction Step 1 I tried to read the barcode (see image below) using a mobile barcode reader and online tools and got it: data - 30925018 , visualization algorithm - Code128C Step 2 Then I tried to generate a barcode from given data and got these images: Original barcode Generated barcode Step 3 As you can see, the images are different. So, I decided to decrypt it by myself. Here is the result: Original decrypted barcode Generated decrypted barcode Сlarifications As Wikipedia says (https:/

EditText, OnKeyListener or TextWatcher (barcode scanning)

旧时模样 提交于 2019-12-12 13:13:02
问题 I'm using a barcode scanner which inserts barcode string into an EditText in this format "12345\n". Instead of using a search button, I want to trigger the search event by the "\n" character. I used TextEdit's addTextChangedListener and inside that function I'm doing: protected TextWatcher readBarcode = new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } @Override public void beforeTextChanged

UWP BarcodeScanner Preview: CaptureElement doesn't show any Preview

╄→гoц情女王★ 提交于 2019-12-12 09:23:04
问题 My CaptureElements are showing strange behavior. When I set a instantiated MediaCapture as the CaptureElements Source and then call MediaCapture.StartPreviewAsync() the CaptureElement doesn't show anything. I have one Application (main-app) with a functional BarcodeScanner on the LoginPage. -> Works! Then I wanted to copy the same code to the SettingsPage with small modifications so in case of several attached cameras, the default one can be set. -> Doesn't work Then I tried to run the main

The Phonegap Barcode Scanner don't recognize any barcode on windows phone

可紊 提交于 2019-12-12 07:25:46
问题 I'm trying to add the Phonegap Barcode scanner plugin to my Phonegap app. I'm primarily developing for windows phone 8 but I also want to target the ios and android platforms. I managed to add the plugin correctly, but when I start the scan, my windows phone doesn't recognize any barcodes. It just shows the video screen with a focus button and a green square. Here's my code for the scan: function Scan() { window.plugins.barcodeScanner.scan(function (result) { barcode = result; alert(barcode

Why would this NRE occur after a successful operation?

自作多情 提交于 2019-12-12 06:57:24
问题 I have a project-wide exception handler in my Windows CE app that is logging this when my app crashes in a specific scenario: Message: From application-wide exception handler: System.NullReferenceException: NullReferenceException at HHS.FrmDelivery.ReaderForm_Activated(Object sender, EventArgs e) at System.Windows.Forms.Form.OnActivated(EventArgs e) at System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32

Android: Listening for barcode scanner button being pressed

家住魔仙堡 提交于 2019-12-12 04:48:37
问题 I have a Motorola TC55, that is equipped with a hardware barcode scanner. What i'd like to do is listen for that button being pressed in my app. I've googled and looked on SO without any luck. Can someone point me to a resource, or suggest how i can get started? 回答1: On the Motorola TC55 the hardware scan button is mapped to the key "BUTTON_L1" by default so this is what you'd listen for like below. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent

Retrieve the value from the barcode scanner in the key event in power builder 12.5

六眼飞鱼酱① 提交于 2019-12-12 03:19:55
问题 I cannot interpret the value from the Barcode Scanner from Power Builder. I am seeing from Key event, the value of Key seems to be "KeyEscape!" and hence it closes the window. Is there any syntax which gets the value from the Barcode Scanner in the keyevent ? But when i use notepad, it is showing some value like "b000012300 " and the space represents KeyEscape! Is there a way to interpret this value in power builder ? Please help me. 回答1: The cancel property for a CommandButton ,

barcode scanning

柔情痞子 提交于 2019-12-12 02:58:31
问题 I am making a basic windows form app. One of the forms just has a textbox and button on it. Beside this, I have a database on sql server. In my database, there is one table (consists of ProductID, productName, NoOfStock and Price). ProductID's are all barcodes that are belonging to real world products such as handcream, candy etc.. When I get my product details via barcodes from other controls such as combobox, there is not any problem. BUT, **The problem is or My question is ** , when I scan

Phonegap BarcodeScanner plugin could work in Android project

可紊 提交于 2019-12-11 20:07:53
问题 I have tried to integrate the BarcodeScanner plugin to one of my Phonegap project of Android. I have even done all the thing step by step as the tutorial provided by github. The library has been imported,BarcodeScanner.java file has been imported, barcode.js has been imported, activity has been added to AndroidManifest.xml the config.xml in res path has been also modified. When I test my app with eclipse, I have gotten the error below. By the way, I have used phonegap 2.9 and my code for