Creating a new backAndForthActivity. Overriding onCreate,start,resume,pause,stop,destroy methods and added logs to them.