Explain the lifecycle of an Android Activity and how you handle state preservation during configuration changes.