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
Re: How to turn on the notification light
have you seen this old post already: [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?233259-Can-you-blink-notification-light-via-Qt[/url]
Re: How to turn on the notification light
[QUOTE=symbianyucca;902446]have you seen this old post already: [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?233259-Can-you-blink-notification-light-via-Qt[/url][/QUOTE]
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
[QUOTE]TARGET.CAPABILITY = NetworkServices \
ReadUserData \
WriteUserData \
ReadDeviceData \
WriteDeviceData \
LocalServices \
UserEnvironment\
TrustedUI[/QUOTE]
Thank you
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.
Re: How to turn on the notification light
hi again
i tried to use the following :
[QUOTE]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;
}
}[/QUOTE]
found in this link[URL="http://www.developer.nokia.com/Community/Wiki/How_to_switch_on_the_email_LED_indicator_in_S60_devices_%3F"]http://www.developer.nokia.com/Community/Wiki/How_to_switch_on_the_email_LED_indicator_in_S60_devices_%3F[/URL]
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?
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.
Re: How to turn on the notification light
[QUOTE=symbianyucca;902497]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.[/QUOTE]
Hi again,
isn't supposed that if those devices (or firmawares) are not having this API implemented then should not work at all??
so why is it working on others apps? (when i received an email or when i received a chat on whatsapp)
i am really confused now!!!
Re: How to turn on the notification light
Basically RProperty API is there, it has been platform API since 3rd ed I suppose. anyway each property has to be declared by some process before it can be found, and if you get KErrNotFound , it means that the property you tried accessing is not declared, so the process supposed to be declaring it, never did so, which could indicate that the functionality is not implemented with the device or the firmware version you are using.
Anyway, if you read the wiki page carefully: [url]http://www.developer.nokia.com/Community/Wiki/How_to_switch_on_the_email_LED_indicator_in_S60_devices_%3F[/url] it says that the API is available in E-Series plug-in, so it is likely not working on any other device than what it is intented for.