Read-only archive of the All About Symbian forum (2001–2013) · About this archive

How to get the status whether the device is calling or not

1 replies · 1,505 views · Started 12 August 2004

Hi, all
I want to get the status whether the device is calling or not, the code I used is below:
RSystemAgent sa;
sa.Connect();
TInt value = sa.GetState(KUidCurrentCall);
LogFile::WriteInteger(value, _L("isInUse"😉);
sa.Close();

if(value != ESACallNone && value != ESACallDisconnecting)
ret = true;
But it seems not work, the value output is always KErrUnKnown, can any help?
Thanks in advice!
David