getIntent
getIntent is a method in the Android Activity class that returns the Intent that started the activity. The Intent object carries information such as the action to perform, the data or URI to operate on, the MIME type, and a collection of extras—key-value pairs used to pass data between components.
Common usage involves reading the starting Intent shortly after an activity is created, typically in onCreate
Behavior with certain launch modes: If an activity is configured with launch modes such as singleTask or
In fragments, data can be accessed via getActivity().getIntent(), but fragments typically use their own argument bundles
Implementation notes: getIntent is a simple accessor and may return null for the extras in some edge