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