When a activity dies due to the limit of memory, the activities will be destroyed according to their priority, say, a background activity (onStop() called) will be
onStop()