Add log info.
Refactoring
BugFix: NullPointerException at screen off/on