to check android app's activity lifecycle