zxing : set two button to two textview #601
Unanswered
jeredez182
asked this question in
Q&A
Replies: 1 comment
-
To use a different request code, see this example: zxing-android-embedded/sample/src/main/java/example/zxing/MainActivity.java Lines 114 to 142 in 13440ad It's important to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi ! i'm on 3.6.0 but your answer dont fit to me, here is my mainactivity, i just dont see how to set up the requestcode in the last part, to call result 1 from button 1 and result 2 from button 2 in allocated textview...thanks for your help
public class MainActivity extends AppCompatActivity {
Button btn_scan;
TextView text_result;
Button btn_scan2;
TextView text_result2;
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
@OverRide
protected void onActivityResult(int requestCode, int resultCode, @nullable Intent data) {
}
Beta Was this translation helpful? Give feedback.
All reactions