Sign in to follow this  
monikker

How to detect phone power down

Recommended Posts

monikker    0

I work on an application that needs to do some actions at exit. No problem when user exits it but what if phone is just turned off? I did some tests and it seems that neither WM_CLOSE nor WM_DESTROY are sent when phone is turned off. Is there any way to detect when phone is about to turn off? (Or even better is there a way to detect and delay this for a while?)

Pavel

Share this post


Link to post
Share on other sites
Shuflie    4

I'm not sure if this is possible or not, but could your application intercept the power button before it gets through to the operating system, close gracefully and then send a software power off command?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.