Hi
How to unlock the screen from the code in 5th edition.
I tried with this keyLock.DisableKeyLock() but its not working.
Thanks in advance
Keerthi
Hi
How to unlock the screen from the code in 5th edition.
I tried with this keyLock.DisableKeyLock() but its not working.
Thanks in advance
Keerthi
have you tried like below:
RAknKeylock2 keyLock;
TInt err;
TRAP(err, keyLock.Connect());
if(err == KErrNone)
{
//see if it is coming in this condition
TBool locked = keyLock.IsKeyLockEnabled();
}
also see the value in TBool variable
Last edited by vineet.jain; 2009-09-04 at 15:28.
Try out this:
Code:RAknKeyLock2 keyLock; // Connect to the notifier server so that key lock state // notifications can be displayed User::LeaveIfError(keyLock.Connect()); // If the key lock is not enabled, ask the user whether it should be if (keyLock.IsKeyLockEnabled()) { keyLock.DisableWithoutNote(); } // Close the session with the notifier server keyLock.Close();