Changing activity and persist

can you help me to understand what is the different between change the activity and rotate the screan?

I can persist the data when i rotate the screan but when i change to other activity and return the data is not persisting

can you help me?