0

私は pdf417 バーコードをスキャンするプロジェクトに取り組んでおり、Android と iPhone 用に特別に Rhodes を使用してこのアプリケーションを開発しています。Zxing は、Android の pdf417 バーコードをスキャンするための便利な API の 1 つであることを知りました。

Zxing を Rhodes と統合できますか? 手順は何ですか?誰かがこれを経験したかどうか教えてください。

-ありがとう。

4

1 に答える 1

0

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.

于 2015-05-21T06:41:43.543 に答える