×
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:

88 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.

×