Archived Talk:Utilising media keys in Symbian C++
I've found a difference in behavior between S60 v3.0 and 3.1 devices when the application is in the background. Simply, on 3.0 devices (e.g. N73 and E61) the media keys are reported to the application anyway, while on 3.1 devices (N95 and 6120) they are not.
I was using the volume keys to bring the application to the foreground from the phone idle screen - where the volume keys aren't used anyway - on 3.0 devices. I'd be interested to know whether there's any way to get those events in the background on 3.1+ devices...
Also, I didn't add yet the User::WaitForRequest calls listed in the example, but everything seems to work OK (in applications other than my own as well), what is the purpose of these calls?
Thank your for your feedback. On most devices only volume keys can be used in 3rd party applications using this API.
11:14, 16 October 2007 (UTC)
Volume keys when app is in background on 3.1 devices
Contrary to what the previous poster found, I have found that applications do receive volume key events when they are in the background on the Nokia N95-1. This is with firmware 30.0.015.
Differences between commands generated for volume control on phone and volume control on headphone remote
I have found that different commands are generated when the volume control on the side of the phone is used from when the volume control on the headphone remote is used. This is on an N95-1 with 30.0.015 firmware. Full details and a link to some sample code can be found on my blog.
Thank you for your feedback. The article has been updated.
09:15, 5 December 2008 (EET)
Article is not showing how to destroy created objects of: CRemConInterfaceSelector and CRemConCoreApiTarget. In destructor of CMediaKeysTestUi class, only CRemConInterfaceSelector object should be destroyed:
--10:32, 8 May 2011 (UTC)
Hamishwillee - CMediaKeysTestUi destructor - Are you confident of this?
Thanks. If you're confident of this then feel free to update the body of the article.
On a related note, this is archived as not relevant to current platforms - which may have been done in error. Do you know if this works on recent versions of Symbian, and if so, which ones have you tested it on? (I could then add ReviewForRemovalFromArchive to and remove this article from archive)
04:53, 28 January 2013 (EET)