0
I’m trying to develop an app for reading CT-archiving and for that I need to record the data read in the barcode, I’m using the Zxing library ,but who receives is a 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 to make that a EditText
receive and record data?
Thanks in advance for the help.
Do you know how to write the data? Will it be written to Sharedpreferences , or sqlite? Give more details about what you have, and what you want to do, so you can make it easier for us to help! Greetings!
– Thiago Luiz Domacoski