modify app background foreground event
Merge pull request #284 from htlxyz/v3

modify app background foreground event