I'm trying to develop an app to read CT-e archiving so I need to write the data read in the barcode, I'm using the ZXing library, but the recipient is textview
.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case IntentIntegrator.REQUEST_CODE:
IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode,
resultCode, data);
if (scanResult == null) {
return;
}
final String result = scanResult.getContents();
if (result != null) {
handler.post(new Runnable() {
@Override
public void run() {
txtScanResult.setText(result);
}
});
}
break;
default:
How do I get a EditText
to receive and save data?
Thanks in advance for the help.