[Solved] Passing data to another activity (Android Studio) [duplicate]


final String scanResult = result.getText();
Intent intent = new Intent(getBaseContext(), ResultPage.class);
intent.putExtra("SCAN_RESULT", scanResult);
startActivity(intent);

Now you can find scanResult in ResultPage activity

String s = getIntent().getStringExtra("SCAN_RESULT");

7

solved Passing data to another activity (Android Studio) [duplicate]