In my application I use the zxing library. I start de zxing barcodescanner via intent. But when the user has no barcodescanner installed. The application stops working. How can I check if a zxing barcodescanner is already installed?
There's a page on the zxing wiki that explicitly mentions this case:
How to scan a barcode from another Android application via Intents
The best way to integrate is to use the small library of code we have provided. It correctly handles for you many details, such as setting category, flags, picking the most appropriate app, and most importantly handling the case where Barcode Scanner is not installed.
Related
I just want to know how to trigger the barcode scanner of the intermec cn51 device through software events rather than pressing the blue hardware button for the scanner. The device is running in Android 4.1.1
If anyone out there who has tried developing apps on this device, please any response is highly appreciated.
I assume you are writing a native android app?
Download their SDK: http://www.intermec.com/products/cmptrcn51a/downloads.aspx
It contains some sample android code for integrating with the barcode reader.
You'll need to register (free) to download the SDK.
I need to read a qr code using Java using the notebook camera. I found examples on how to do it in Android but nothing in desktop. Is Zxing the best library to do it? Anyone know a good tutorial about it? Many thanks.
to grab an image from a cam you can use JMF ( Java Media Framework) ( bit outdated )
or this project https://github.com/sarxos/webcam-capture
Zxing is a good choice to read the barcode from the image
Complete example can be found herer https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-qrcode
Not sure if about your java-ee-7 tag. Should the app running on a application server ?
I followed the steps provided in the Zxing project. I have created a single button to scan a barcode. I am using emulator in Eclipse and I am having a webcam(according to the suggestion of #Sean Owen) which would do the image capture for me. While running the project after I click the scan button a prompt's asking whether I want to install an existing separate app named Barcode Scanner which is needed to begin the scan process. So, as soon as I choose the yes option the project crashes and shows that the application stopped working. Also I am having the following error in LogCat. Any help would be appreciated.
Its simple I guess. You don't have the Google Play app installed on your device. Either try to install it or find a device which has one installed.
You do not have the app that can handle the intent for barcode scanner.Go to the Google Play app and install one barcode scanner.Check if the issue persists
I wrote an Android App using the Mixare (link to mixare project) Framework (for augmented reality).
The first step was to get the App running with my own data source. This was pretty simple since you simply have to create a new Intent for the mixare content like this:
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse("http://myserver:8080/myData"), "application/mixare-json");
startActivity(i);
The problem is that this code simply makes a call to the mixare App on your Android device.
I want to modify the mixare view and integrate the whole source code into my App (it is licensed under GPLv3).
Do I have to use the mixare code as a library? What changes would I have to do to my AndroidManifest.xml for creating a new Intent?
I found out, that my question is not necessarily a mixare problem.
The Solution for integrating an Android app into another one is using the first one as a library.
For anyone who has not done this before this article helped me a lot. It explains how to integrate zxing barcode scanner into an Android app natively.
If you want to integrate mixare into your app then the whole app must be released under the GPLv3 license.
At the moment it's not possible for external plugins to alter the mixare view (i.e. using own icons or modifying the layout), but there are plans to do so, even though there are no estimates.
If you are interested I would suggest you propose your suggested approach to the developer discussion group.
HTH,
Daniele - mixare team
I have just made application which requires BarCode scanner on device. How can I programatically check existing of this application into device? I know package name for BC scanner.
It is all documented on the zxing website.
http://code.google.com/p/zxing/wiki/ScanningViaIntent
I would suggest instead adding the scan functionality within your app, your app should never depend on other Apps to work.