0

I am programming Android now; A bundle could be saved in an intent by method putExtra(). This intent could be further specified by which Activity it will start. And used by startActivity(Intent); how can I then retrieve the Bundle in the Intent in the new activity? Will the bundle automatically match the intent reference in method onCreate(Bundle) of the new activity?

Faust
  • 9
  • 3

1 Answers1

0

You have to use getIntent() to retrieve the intent used to create the activity and you can then use getExtra on the intent.

Xavier Falempin
  • 1,186
  • 7
  • 19