Android Save Retrieve Activity Instance State Example

When an android activity stopped, it may be recycled by the android OS. But how to store recycled activity instance state data, and use those activity instance data later? Android provides the below methods.