I have added Zxing 3.0.1 as a library to my project I have 2 layouts: on first i have button which call CaptureActivity of Zxing library, and when CaptureActivity decode a barcode i need to put this code on a second layout into textView. How can i do this? If someone know, please write step-by-step manual, because in and Android beginner, and dont know what to code .
I must put something this part of code CaptureActivity?
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (resultCode == RESULT_OK) {
if (requestCode == HISTORY_REQUEST_CODE) {
int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
if (itemNumber >= 0) {
HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
decodeOrStoreSavedBitmap(null, historyItem.getResult());
}
}
}
}