Sign in to follow this  
Followers 0
monikker

How to detect phone power down

2 posts in this topic

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

0

Share this post


Link to post
Share on other sites

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?

0

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  
Followers 0

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