Using volume keys in applications

lavonius | 16 December, 2011 13:21

We have noted that a few games and other sound-using applications do not behave properly when the volume keys of the device are used. When the keys are used when a game is running, they should control the volume of the game instead of changing the current volume settings (and the profile) of the device.

This is done by stating that the program belongs to the "gaming"-class of applications. The full theory and practice on the topic is available in the developer library.  

But simply put, you need to create a configuration file with the following content:

[classify gaming]

/full/path/to/the/game

And place it into the /usr/share/policy/etc/syspart.conf.d directory as game.conf.


RSSComments

thanks

lolloon900 | 16/12/2011, 16:41

thanks

Line break missing

VEIKKO99 | 20/12/2011, 20:38

Note that you need to have a line break after the [classify gaming] tag (before the path).

Thanks, VEIKKO99

lavonius | 22/12/2011, 14:38

lavonius

Linebreak was indeed omitted accidentally, thank you for pointing it out.

OVI Store QA does not allow to use this technique

VEIKKO99 | 22/12/2011, 19:46

I added the file to my own app and tried to update it in OVI Store but QA rejects this.

"SUMMARY: The application does not use the opt and user folders properly."

http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Essential_concepts_for_Harmattan_developers_Data_storage_List_of_path_name_exceptions.html

You must login to post comments. Login
 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved