Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How to get notification of user activity when the device has been idle
This article shows how to get a notification of user activity when the device has been idle
Series 80 1st Edition
Series 80 2nd Edition
How to implement a mechanism that gives an application a notification of user activity when the device has been idle?
Write an "Activity Manager" CTimer that monitors InactivityTime. When the CTimer launches, do
TTimeIntervalSeconds inactiveTime = User::InactivityTime();
if (inactiveTime < KMyActivityManagerTimerInterval)
You can implement an "Activity Manager" by using CTimer. When the timer launches, compare the timer interval to Inactivity Time. If the Inactivity Time is smaller than the timer interval, you know that there has been activity while the timer was counting.