Multiple choice technology platforms and products

In addition to its primary attributes of action and data URI, intent can include additional attributes called extras. An extra can provide more information to the component that receives the intent. It is accessed using -

  1. Intent.getIntentExtras()

  2. Intent.getExtras()

  3. Bundle.getExtras()

  4. None of above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Android, the extras associated with an Intent are retrieved using the Intent.getExtras() method, which returns a Bundle containing the key-value pairs. There is no getIntentExtras() method on Intent, making Intent.getExtras() the correct choice.