Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009

    AutoLockStatus is never called?

    I have this code

    function SetAutoLockNotification()
        var serviceObj = device.getServiceObject("Service.SysInfo", "ISysInfo");
        var criteria = new Object();
        criteria.Entity = "Display";
        criteria.Key = "AutoLockStatus";
        var result = serviceObj.ISysInfo.GetNotification(criteria, onAutoLock);
        alert("autolock notification is set: " + result.TransactionID);
    function onAutoLock()
        sysinfo.beep(1000, 1000);
    I get a transactionid from the getnotification so the notification should be active. But the onAutoLock function never gets called. Is this a bug or am I doing something wrong here?

  2. #2
    Regular Contributor
    Join Date
    Jun 2009

    Re: AutoLockStatus is never called?


    AutoLockStatus is Sync process. bellow link help you to find the AutoLockStatus.



  3. #3
    Registered User
    Join Date
    Jul 2009

    Re: AutoLockStatus is never called?


    Is available as sync call but that is not what I need.

    According to the library documentation the getnotification() is available for the autolockstatus.

    Also the getnotification() returns a transactionid which implies the register is accepted.

Similar Threads

  1. MaiscOpenComplete function Not getting called
    By tlgkumar in forum Symbian
    Replies: 4
    Last Post: 2009-01-08, 05:59
  2. exe - destructor not being called
    By nubiah in forum Symbian
    Replies: 4
    Last Post: 2007-07-27, 10:25
  3. ActiveObject RunL is called just once
    By lskmao in forum Symbian
    Replies: 3
    Last Post: 2007-01-18, 15:15
  4. Errors building project in VS.2003
    By jensesaat in forum Symbian
    Replies: 11
    Last Post: 2006-11-13, 16:54

Posting Permissions

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