how to implement back button and home button win phone 8

I just test cocos2d-x win phone 8 on emulator but when i press back key or home key, the app is exit and can not resume, if you launch app again, it will restart (not resume) and i implement back button as the same method on android (or windows), it still doesn’t work. Please help me, thanks