Reputation: 43
i am attempting to create an android application qr scanner, I have looked into using the zxing open source code, on the tutorials it says to open the android folder. Is that the "android" folder or "android-integration" folder?
I have tried it with the android folder, but i am getting lots of errors with the .R can anyone help me on whqat to do with this?
Thanks
Upvotes: 0
Views: 498
Reputation: 5825
Have you looked into using ZXing via intent? There is usually no need to incorporate the ZXing code into your app.
This code will invoke ZXing:
String ZXING = "com.google.zxing.client.android";
Intent intent = new Intent(ZXING + ".SCAN");
intent.setPackage(ZXING);
activity.startActivityForResult(intent, 0);
Then you have to add an onActivityResult function to process the scan data returned by ZXing.
Upvotes: 1