×

Discussion Board

Results 1 to 8 of 8

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    18

    Question How to turn on the notification light

    Hi everyone,

    i am developing a qml application that require to turn on the notification light of the device.
    what i mean by the notification light is the light which is found on the menu button of the device like (N8, E7...)
    i have searched on wiki but didn't find anything useful till now.
    Is there an API that can turn on the notification light? or any working code to do it?

    Thank you for any help
    Rondo

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to turn on the notification light

    have you seen this old post already: http://www.developer.nokia.com/Commu...n-light-via-Qt

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    18

    Re: How to turn on the notification light

    Quote Originally Posted by symbianyucca View Post
    have you seen this old post already: http://www.developer.nokia.com/Commu...n-light-via-Qt
    hi symbianyucca,

    thank you for your reply
    i tried this code but faced some problem
    the light is turned on only if the device is not locked, but is not blinking?
    any help how to make it blink and also make it work when the device is locked?the device support blinking and having these capabilities
    TARGET.CAPABILITY = NetworkServices \
    ReadUserData \
    WriteUserData \
    ReadDeviceData \
    WriteDeviceData \
    LocalServices \
    UserEnvironment\
    TrustedUI
    Thank you

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to turn on the notification light

    I would suppose that you would need to implement timer to turn it on/off to get the blinking effect, anyway, have never needed this API, so haven't really tried it myself.

  5. #5
    Registered User
    Join Date
    May 2012
    Posts
    18

    Re: How to turn on the notification light

    hi again

    i tried to use the following :
    TInt retVal = KErrNone;
    retVal = RProperty::Set( KPropertyUidEmailLedCategory, KEmailLEDOnRequest, KSetEmailLedOn );
    if( retVal != KErrNone )
    {
    switch( retVal )
    {
    case KErrNotFound:
    {
    // Property was not defined. Device does not have an Email LED.
    CEikonEnv::InfoWinL(_L("No Email LED indicator"),_L(""));
    }
    break;
    default:
    {
    // Some other error.
    }
    break;
    }
    }
    found in this linkhttp://www.developer.nokia.com/Commu...60_devices_%3F

    i am always getting "No Email LED indicator" popup on my E7, N8, C7...
    Note that the led is working on whatsapp for example!! so how it is not detected here?

    in my previous post i have run this code after 15 sec when the led is off ...so when i get to this code it turned on , so i guessed that it works..now i am confused that maybe it turned on because an activity took place and not from the code

    any help?

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to turn on the notification light

    KErrNotFound simply means that the Property used there is not defined, so could be that those devices (or firmawares) are not having this API implemented.

Similar Threads

  1. How can I turn off the screen light
    By ashraf fawzy in forum Symbian
    Replies: 1
    Last Post: 2011-04-09, 06:37
  2. how to TURN OFF BACK LIGHT
    By manmay.gupta in forum Symbian
    Replies: 4
    Last Post: 2010-01-25, 05:40
  3. N82 - turn off the light?
    By irasiad in forum General Development Questions
    Replies: 12
    Last Post: 2009-01-12, 13:55
  4. Turn The 5700's Light ON !!!ٌ
    By Ali.a in forum General Development Questions
    Replies: 5
    Last Post: 2008-01-07, 14:46
  5. Turn Screen Light On
    By djorge in forum Symbian
    Replies: 0
    Last Post: 2006-07-06, 14:40

Posting Permissions

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