purplecabbage/phonegap-plugins

Problem with Phonegap Barcode Scanner plugin "Android library projects cannot be launched"

Opened this issue · 2 comments

I0ri commented

Hi guys,

I am a 1st timer in developing mobile app and it is also my 1st time using phonegap.
I am trying to create a QR Code scanner mobile web app using phonegap framework.

I have follow the below websites tutorial and there are good tutorials but I encounter a problem.

https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/BarcodeScanner

http://mayukhsaha.wordpress.com/2013/07/09/barcode-qr-code-scanner-and-encoder-using-phonegap-android-and-eclipse/comment-page-1/#comment-203

http://simonmacdonald.blogspot.sg/2011/12/installing-barcode-plugin-for-phonegap.html

I am suppose to do the following which is part of the steps. "In the Properties dialog, select the Android tab and ensure the Is Library checkbox is click."

Image -> http://s24.postimg.org/yanrvjvfo/check.jpg

But if I check the 'is library' checkbox, I will not be able to compile and run my app as it will display an error at eclipse "Android library projects cannot be launched"

Image - > http://s17.postimg.org/nlx6yrwb2/error.jpg

If it is unchecked, my app is able to run and I am able to see the below interface on my phone but the QR code scanning and encoding function will not work.

Image -> http://mayukhsaha.files.wordpress.com/2013/07/barcode-2013-07-09-6.png?w=645

Using Android ADT Bundle:
Eclipse
ADT
Phonegap Cordova 2.9.0
Barcode scanner plugin 2.2.0

How am I suppose to make the QR Code reader works in my app?
please assist me in details as I am a newbie in phonegap. Thanks alot!

I0ri commented

Hi all. it works already. thanks. but when I scan a normal text, it will auto close the app. url is fine. any idea?

hi my friend
What did you do to set your own program ?
my program closing with this allert "unfortenately My borcode Scanner has stopped"
please help me