Revision as of 04:25, 15 June 2012 by hamishwillee (Talk | contribs)

Archived:Using alarms to power up an S60 device

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Tested with
Devices(s): All (S60 3rd Edition)
Platform(s): S60 3rd Edition

S60 3rd Edition (initial release)
Keywords: TASShdAlarm
Created: User:Technical writer 1 (October 8, 2008, updated October 21, 2008)
Last edited: hamishwillee (15 Jun 2012)


S60 devices that are switched off can switch on automatically to react to alarm events.

In the alarm startup mode, the user will see and hear the alarm and can choose whether the phone will be switched on.

The alarm server (RASCliSession) can be used to set an alarm to wake up the phone in the alarm startup mode.


Alarms can be set programmatically to turn on the device (in alarm startup mode) at a specified time. Note however, that there are no APIs available to initiate a normal power-up cycle directly - when using alarms, user interaction is required to switch on the device in alarm startup mode.

A specific flag must be set for the alarm (TASShdAlarm) to indicate that it is a wakeup alarm and should wake the device up even when powered off.

 const TInt KWakeupAlarmFlagIndex = 0;
TASShdAlarm alarm;
alarm.ClientFlags().Set( KWakeupAlarmFlagIndex );

See also:

How to create an alarm using Symbian C++

34 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.