invoke enter background and foreground event in lua
Merge pull request #341 from htlxyz/master

invoke enter background and foreground event in lua