change timer to handler

better suited for android platform
separate timeout value for Screen On and Off

more flexible design for real case use.
Add a confirmation dialog to prevent user from clicking on it accidentally.