Track volume changes
Here is how you can subscribe to volume changes on the phone. First you must define callback which will be called when any volume change occurs. Then you set this callback using sound_manager_set_volume_changed_cb() API function.