Reversing the qr code in android -
i have made qr code reader in application , want retrieve information that's on qr code , information should land on form page of application, if qr code has name,email,address , city in qr code in form page having fields empty text boxes , after snap picture of qr code information should land on specific field on form page can 1 tell me how can implement in application. have 2 pages
page 1 has button has button "scan" works qr code scanner.
page second has form page has text view , empty text boxes name,email,address , city fields.
so when press button "scan" first page , after scanning qr code it, should take me second page of app has form , fields should filled information on qr code.
used http://goqr.me/ (vcard) make qr code testing on form, should use plain text information make easier or ok have used.
please me out how can implement this, coding helpful.
in captureactivity function draw line in find code
textview contentstextview = (textview) findviewbyid(r.id.contents_text_view); charsequence displaycontents = resulthandler.getdisplaycontents(); addcard.bar=displaycontents.tostring();//this edit barcode addcardnew.bar=displaycontents.tostring();//use static string in ur act. encodeactivity.con= displaycontents.tostring();//this have use qrcodeencoder.contents=displaycontents.tostring();//this supply value
create button in captureactivity onclick event should
public void onclick(view arg0) { // todo auto-generated method stub intent i=new intent(captureactivity.this,encodeactivity.class); i.putextra("new1", new1); i.setaction(intents.encode.action); i.putextra(intents.encode.format,temp ); startactivity(i); finish(); } });
after take encode activity there on onresume code find bitmap named bitmap assign bitmap in activity , call finish();
Comments
Post a Comment