-1

Possible Duplicate:
Android, QR code library NOT ZXING

I want to create an app that scans a predetermined QR Code and sends to a webpage. I don't want a whole library (so no ZXing), just a predetermined QR code that if scanned, sends to user to a predetermined webpage... So basically somewhere in the code I would supply the both the qr code link and the webpage link.

Example: If the user scans the QR Code supplied by this link http://qr.kaywa.com/img.php?s=8&d=http%3A%2F%2Fyoutube.com, they will be sent to youtube.com/watchxyz

Is there any existing framework or a guide on doing this?

Community
  • 1
  • 1
Big_Fan
  • 415
  • 2
  • 7
  • 20
  • Sorry, is there any existing framework or guide on how to do that? – Big_Fan Jul 12 '12 at 18:32
  • Do you mean an app like `QR Droid`? – slybloty Jul 12 '12 at 18:33
  • No no, an app that send you to a webpage based on an already decided qr code. So suppose I were to generate a QR Code on my own (like on a computer or different device), if I got the link to that QR Code and put it in my app code, I want the app, once it scans, to recognize that specific QR code (if it is another one then an error message occurs or something) and send the user to a webpage. – Big_Fan Jul 12 '12 at 18:37
  • So you want an app that would read only one QR code? Why bother if the app only links to one website? – slybloty Jul 12 '12 at 18:41
  • You want to scan a QR code, but don't want to use a library... and it will only read one type of QR code. Why? just use ZXing by Intent or something and do whatever you want with the result, I suppose. – Sean Owen Jul 12 '12 at 18:42
  • It is for a project that I will later expand. Yes I know it seems trivial but it is not for market use or anything. – Big_Fan Jul 12 '12 at 18:42
  • Sean Owen, is that the only way? Is there no other source code that I could use? – Big_Fan Jul 12 '12 at 18:44
  • So far I do not see what you are trying to do that can't just be accomplished by Intent: http://code.google.com/p/zxing/wiki/ScanningViaIntent – Sean Owen Jul 13 '12 at 15:34

1 Answers1

0

ZXing is recommended but, here's an alternative you might try ZBar bar code reader. Check it out and see if it works for you.

slybloty
  • 6,346
  • 6
  • 49
  • 70
  • Why would that work any differently in this regard? He needs control over the handling of the URL and you can do that with custom code no matter what. The scanning itself is a nonissue. – Sean Owen Jul 13 '12 at 15:35
  • Thank you! ZBar is what I have been looking for! Although it is not exactly the same thing as what I asked, a few modifications and I should be as good as golden. – Big_Fan Jul 13 '12 at 15:43
  • Yea Sean Owen, ideally that is what I wanted to do. But ZXing was what they say 'too much of a good thing.' This ZBar that slybloty showed me is simpler (and therefore easier to customize w/o dealing with too many issues). Thanks both of you for your help though. – Big_Fan Jul 13 '12 at 15:46
  • 1
    OK. But this would have been 10 lines of code with zxing Intents. I think you did this the hard way. – Sean Owen Jul 14 '12 at 20:41