Bug fixed

Now, the app is able to save its data when different states of the
Acitivity lifecycle are running such as running on background - during a
phone call - or when the orientation changes.