Hi,
I want to get the status whether the device can connect to network or not, the code I used is below:
RSystemAgent sa;
sa.Connect();
TInt value = sa.GetState(KUidNetworkStatus);
LogFile::WriteInteger(value, _L("isOnWirelessNetwork"😉);
sa.Close();
if(value == ESANetworkAvailable)
ret = false;
But it seems not work, the value outputed is always KErrUnknown, does any help?
Thanks a lot!
sitar