×
Namespaces

Variants
Actions
Revision as of 06:26, 20 September 2009 by valderind4 (Talk | contribs)

Archived:How to get the battery strength of mobile using Symbian C++ before Symbian OS v9

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}

Pre-Symbian OS v9 solution

#include <saclient.h>
Link against: sysagt.lib


RSystemAgent systemAgent;
User::LeaveIfError(systemAgent.Connect());
TInt strength = systemAgent.GetState(KUidBatteryStrength);
systemAgent.Close();

Post v9 solution


Related Links:

80 page views in the last 30 days.
×