I want the user to change phone music volume with a seekbar.
Found this in the docs.
SetVolume (Channel As Int, VolumeIndex As Int, ShowUI As Boolean)
Sets the volume of the specified channel.
Channel - One of the VOLUME constants.
VolumeIndex - The volume index. GetMaxVolume can be used to find the largest possible value.
ShowUI - Whether to show the volume UI windows.
Example:
Dim p As Phone
p.SetVolume(p.VOLUME_MUSIC, 3, True)
But what values should I choose in the seekbar to get the right values here instead of the "3".
I mean, there has to be a span, like from 1 - 10 or something like that.
What would be the Int for MaxVolume?
TNX in advance to all you helpfull guys!
Found this in the docs.
SetVolume (Channel As Int, VolumeIndex As Int, ShowUI As Boolean)
Sets the volume of the specified channel.
Channel - One of the VOLUME constants.
VolumeIndex - The volume index. GetMaxVolume can be used to find the largest possible value.
ShowUI - Whether to show the volume UI windows.
Example:
Dim p As Phone
p.SetVolume(p.VOLUME_MUSIC, 3, True)
But what values should I choose in the seekbar to get the right values here instead of the "3".
I mean, there has to be a span, like from 1 - 10 or something like that.
What would be the Int for MaxVolume?
TNX in advance to all you helpfull guys!