0 votes
in Android by
What is the difference between a Bundle and an Intent?

1 Answer

0 votes
by

A Bundle is a collection of key-value pairs.

However, an Intent is much more. It contains information about an operation that should be performed. This new operation is defined by the action it can be used for, and the data it should show/edit/add. The system uses this information for finding a suitable app component (activity/broadcast/service) for the requested action.

Think of the Intent as a Bundle that also contains information on who should receive the contained data, and how it should be presented.

Related questions

0 votes
asked Aug 31, 2023 in Android by Robindeniel
0 votes
+1 vote
asked Jan 14, 2021 in Android by RShastri
+1 vote
0 votes
asked Mar 29, 2023 in Android by Robin
...