Namespaces
Variants
Actions
Revision as of 04:25, 15 June 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Using alarms to power up an S60 device

Jump to: navigation, search
Archived.png
Archived: 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)

Compatibility
Platform(s): S60 3rd Edition

Article
Keywords: TASShdAlarm
Created: User:Technical writer 1 (October 8, 2008, updated October 21, 2008)
Last edited: hamishwillee (15 Jun 2012)


Description

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.

Solution

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++

89 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved