How to Integrate Zxing api with Rhodes? - android

I'm working on a project which will to scan pdf417 barcodes, am developing this application using Rhodes specially for Android and iPhone. As I came to know that Zxing is one the useful api to scan pdf417 barcode for Android.
Can we Integrate Zxing with Rhodes ?
What is the procedure?
Please let me know if anyone gone through this.
-Thanks.

Rhodes uses Zxing in its Barcode class (http://docs.rhomobile.com/en/5.0.38/api/barcode), so there is support out of the box for some of Zxings features. For example for QR Codes and Code128 it works right away. However, not all types of Barcodes are supported on all platforms, so you should try out if pdf417 is supported on Android and IOS.
If it is not you can still write a native extension. It's actually not that hard. The documentation is relatively good (http://docs.rhomobile.com/en/5.0.38/guide/native_extensions). However, in my opinion it misses how to start and return to activities (via startActivity or startActivityForResult). But luckily the source code of how they implemented the Barcode class is open (https://github.com/rhomobile/rhodes/blob/3-5-stable/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java) so you can take it as a basis for your own native extension with a scanning engine which supports pdf417.

Related

How to detect a complex QR code using ZXing?

Our team is coding an Android QR code scanner app using ZXing 3.4.0 library and we need to scan rather complex QR code like below. We've been testing and found that the scanning is not stable sometimes it could scan the QR code sometimes it can't.
My question is how to optimize the scanning to ensure fast and stable outcome? Should I turn on TRY_HARDER? Should I use Binarizer? If so, which type - GlobalHistogramBinarizer or HybridBinarizer? Should I scan the QR closer to the phone (enlarging the QR code in the camera view)? Anything else I should do?

Could anybody please provide a tutorial showing complete implementation of QR code generation for Android?

I am looking for a detailed tutorial on QR code generation in Android. Kindly, let me know if ZXing is the only possible solution or there are other options.
You can use the Zxing Library for QR purpose projects.
Complte list of examples are available here,
Android Barcode scan Using Zxing Library
Integrating ZXing in your Android App as standalone scanner

Own QR code scanner app for android

I'm beginner in android and I need to create own QR code scanner app.
After searching for some library, of course I found zxing library (http://code.google.com/p/zxing/), but if I understand right, there must be installed BarcodeScanner application to use it and this library call this app. This variant is bad for me, because I need only my own app.
But if I'm not right, how to use this library without installing BarcodeScanner?
Also I found this: http://www.blackdogfoundry.com/blog/zbar-bar-code-qr-code-reader-android/, and I'm not sure that it will work fine with all devices.
Did anyone do some qr readers, what did you use? Do you know some other good libraries for this, except of zxing?
ZXing is good and useful library. I think you are mixing up library itself and application
which is also produced by the project
I wouldnt be so quick to dismiss Barcode Scanner.
I recently used it in an App that needed to read barcodes. It works seamlessly with my App. The only downside is that it needs to be installed by the user, but to be honest weighting that up against the time and money it would take to develop a Barcode reader from scratch, its a no brainer. If the user does not have it installed it will not break your app.
I know this is not the answer you were looking for but just thought I would offer my experience
You may also try to call the BarCode scanner App and obtain the result in the parameter of strings rather than importing the whole zxing library into your project due to substantial cost to code integration into your project . Using intents and overriding the OnActivityResult is already a good solution.
XZing is your answer!
yeah yeah they try to push it to use as an external library, but that relies on the user having it installed.... but it's all open source and you can use it however you prefer.
So download that code, integrate it directly into your app and there you go.

how to import the ZXing library for my app for Encoding QR codes(while there is preinstalled ZXing scanner app for my mobile)

I am trying to do an app to create a final QR code for the information of multiple barcodes
that I have scanned.
I am wondering how would you import the ZXing lib to your code?
Assume that user already has ZXing scanner in their mobile, can I just connect with the app to generate the barcode without importing all the lib since it will make my app heavy?
For importing , QRencoder.java from ZXing, what are the necessary part of codes that I need?
Or is it even possible?
I found this two months ago : http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/
And I have tried installing that apache but it is so painful process for me. So is there any other ways around?
Regards
Thet
Yes, just use Intents. You don't need any code beyond the bit of integration code here: http://code.google.com/p/zxing/wiki/ScanningViaIntent The same class has methods for encoding a barcode on screen.

Embedded ZXing - what am I missing?

Sorry if this has been answered before, but I am trying to make an application that will include the ability to scan barcodes on Android. I'm looking at using ZXing as the library, however, I want to embed the scanner in my application so that the user doesn't have to have the ZXing barcode scanner installed to use my application. From the description of ZXing, it sounds like this is possible.
I've gotten as far as building ZXing, linking it into my project in Eclipse, then creating a new reader instance. However, I'm lost when it comes to starting the barcode reader and implementing the callbacks. IMO, this is when the documentation here gets hazy.
If someone could explain how to use ZXing properly, that would be of great help.
Cheers!
Personally, I'm a fan of using multiple apps as plug-ins. That way, the user doesn't have to have the same code on the phone multiple times (storage is limited, after all), and - more importantly - if ZXing improves the barcode scanner (which they do often), the user will automatically have the latest and greatest version without you having to integrate and modify it again to fit your needs.
You can simply detect for the presence of the app, and prompt the user to install it if it doesn't exist. You can simply link to the pname: Uri to the zxing app, which will automatically fire up the market and allow the user to install the app.
That said, if you really want to embed the code, one way would be to download the relevant source files, rename the package names and intent names so they don't clash with ZXing's code, and then simply call the intent to scan the barcode (like you would normally do when you use the barcode scanner as a plug-in). If you do that, be sure to credit ZXing for their work in your documentation, and make sure their terms of service allow for using and modifying their source code.
Complete source code to Barcode Scanner is in the android/ directory. That is about the best explanation you could ask for.
If you're rewriting it with new code for your own purpose, I think that's more up to you than for the project to explain.
You might get more useful information at the project discussion group.

Categories

Resources