| ID | TSS000268 | Creation date | July 21, 2005 |
| Platform | S60 platform Series 80 1st Edition Series 80 2nd Edition | Devices | |
| Category | Symbian C++ | Subcategory | General |
| Keywords (APIs, classes, methods, functions): |
How to get a notification of user activity when the device has been idle?
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)
{
CTimer::Cancel();
NotifyApplicationOfUserActivityL();
}
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.
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| How to set own image to phone idle screen. (By some application)? | denis_pertsev | General Symbian C++ | 0 | 2004-07-20 12:14 |
| Notification about state changes of VoIP call | zdenko | VoIP | 9 | 2008-01-09 21:35 |
| Customization of Active Idle Screen | ritam.banik | Series 40 & S60 Platform Feedback | 4 | 2008-04-25 19:09 |
| a question about the user agent string | jackchang1@gmail.com | Mobile Java General | 3 | 2005-09-19 13:06 |
| [announce] aXYZ 1.0.0 using XYZ axes of the N95 accelerometer ! | cyke64 | Python | 84 | 2008-03-05 00:25 |