×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    Screen unlock in 5th edition

    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

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: Screen unlock in 5th edition

    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.

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: Screen unlock in 5th edition

    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();

Similar Threads

  1. How can i set speaker volume in S60 5th edition.
    By aamitgupta in forum Symbian
    Replies: 2
    Last Post: 2009-09-07, 11:28
  2. edit control problem in S60 5th edition
    By gangadhar.bonda in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-06-09, 11:31
  3. [moved] Problem with edit control in S60 5th edition
    By gangadhar.bonda in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-06-06, 09:07
  4. Who to start UI development in Series 60 5th edition??
    By rohanwaugh in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-11-03, 06:14
  5. Screen saver API in 3rd edition
    By magicdave in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-10-30, 13:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×