getExtras - How to Retrieve a map of Extended Data from Intent

getExtras was added in API Level 1
public Bundle getExtras ()
Retrieves a map of extended data from the intent.
Returns: the map of all extras previously added with putExtra(), or null if none have been added.
A bundle is A mapping from String values to various Parcelable types.
Get the extras and save them to a Bundle object called myExtras

1. Receive an Intent in your Activity

2. Inside the above if statement, add the following line of code. This will save any extras you may have to the Bundle variable named myExtras

Bundle myExtras = getIntent().getExtras();

3. Next, still within that if statement, add the below line to test if there are any extras in new variable myExtras.

if (myExtras != null) { 
    // extras exist
 } else {
    // extras do not exist

}

4. Compile and run!