Explain the use of 'bundle' in android?

Asked 2 years ago
Viewed 541 times

0

Explain the use of 'bundle' in android?


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.

answered 2 years ago by Hitesh Vohra

Your Answer