Explain the use of 'bundle' in android?

Asked 14-Apr-2022
Viewed 447 times

1 Answer


0

  • Bundles are commonly used to transfer data from one activity to the next. Essentially, the key-value pair notion is applied here, with the data to be passed being the map's value, which can then be obtained using the key. With intent, bundles are used, and values are delivered and retrieved in the same way that they are with Intent.
  • The type of values passed depends on the user, although bundles can hold any type of value (int, String, boolean, char) and transmit it to the new activity.


Read More: Define Android toast.