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

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:

391 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