What is the difference between a Bundle and an Intent?

Technology CommunityCategory: AndroidWhat is the difference between a Bundle and an Intent?
VietMX Staff asked 3 years ago

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.