I have written an application in JAVA which runs a counter for some specified minutes.
The problem is when a user puts the computer in to sleep the counter pauses at that time and then resumes with system resume.
I want to restart the counter if the computer resumes from sleep.
How can I check through my program that the computer has awaken from sleep.
All your help is appreciated. Thanks in advance !