Click here to Skip to main content
15,878,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a simple Windows Mobile application which records GPS coordinates every 5 minutes. The problem is the app works fine as long as the screen is on, as soon as the phone goes in standby mode the app stops working. When I switch on the device the app again starts working again.
What do I do to keep the app working even in standby mode?
Posted

Here's a link to some C# code that could be used to turn the screen off: http://www.brianpeek.com/blog/archive/2008/07/03/windows-mobile-devices-and-power-states.aspx[^].

Regards,
 
Share this answer
 
Comments
sowmya.obs 24-Feb-11 7:07am    
Thank u
How to run a windows mobile application while mobile is on stand by mode,I need Source code.
Manfred Rudolf Bihy 24-Feb-11 7:29am    
Which part of the source code on the page I linked to are you having trouble with? It's pretty much self explanatory.
Espen Harlinn 25-Feb-11 7:37am    
Good effort, my 5 - seems like OP forgot to tag your reply as the aswer :)
I have an application called SmartRunner on my device which also tracks GPS coordinates. Recording stops when one puts the device in stand by mode so there is an application called "Black Me" which turns off the screen to save battery power. You can find it here: Black Me[^]

Hope that helps!
 
Share this answer
 
v2
Comments
sowmya.obs 24-Feb-11 0:12am    
Thank you for answering my Question but I need Source code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900