androidqr-codezxingzbar-sdk

Launching a PUT or POST request after scanning QR Code


All the examples I see simply direct you to the url encoded in the QR code. Is there an android library that can decode the url and submit a PUT to update a backend? I'm looking at zxing and zbar but haven't found any sample code for that yet. Thanks


Solution

  • Well there are certainly libraries that will get the contents, the URL, from a QR code. That's 95% of the work. Issuing a PUT to a URL in Java is a few lines of code using java.net.URL and related classes. You could use Commons HttpClient if you liked its API better. So, yes, but it will naturally be a matter of using right tools for the two parts of the work.