Create (or copy) an android program that shows how the activity life cycle works, and explain it in details.