Bundle.getInt() - How to Get the Value of an Extra

Bundle.getInt() was added in API Level 1
public int getInt (String key)
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
Parameters: key a String
Returns: an int value

1. Retrive a map of Extended Data from Intent

2. Within the if statement from above(if there are extras), add the below code. 

    a. Declare an int variable named rowId

    b. Next, add the below code. This will check to make sure there are extras, and if so, will get an extra named RowId and save it to your integer rowId.

if (myExtras != null) {
rowId = extras.getInt("RowId");
} else {
rowId = -1;
}

3. Compile and run!

Next Recommended Article: Bundle.getInt() - How to Get the Value of an Extra

Resources:
http://developer.android.com/reference/android/os/Bundle.html#getInt(java.lang.String)