Simple program to understand activity life cycle in android