I want to scan barcodes using Android Phonegap. How can I do this ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Check out the PhoneGap barcode tutorial here. It will take you step by step to creating a sample app with zxing via the PhoneGap plugin from purplecabbage.
回答2:
- You would have to build a Phonegap plugin which implements the zxing library.
- Or use the pre existing BarcodeScanner plugin which is MUCH easier.