Each application has 2 bars at the top: status bar and title bar. Sometimes it's useful to remove/hide them (especially in gaming apps).
Sometimes we need to save some data when the activity is re-created.
Sometimes we need no support the rotation of the screen. It must be either portrait or landscape. There is a solution for each activity
Sometimes we need to restart the activity. Here is the solution.