How to scan barcode and place the data scanned into textview

I have create a project with TC25 and Android stuido.

In layout, i have 3 textview and 1 edittext.

How to scan barcode and place the data scanned from edittext move to textview?

Example :

Scan Barcode 1, the scanned data will move to textview 1

Scan Barcode 2, the scanned data will move to textview 2

Scan Barcode 3, the scanned data will move to textview 3

I have already try using Intent Output, but it not work if  the activity not as parent.