what i want to do is to play a sound as loud as possible, independant from system-settings.
but i will restore them after it.
Your Link, out of the help:
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)
there is only GetMaxVolume, but i think i need something like GetActualVolume.
and i need this for my Dim MP as MediaPlayer and for Dim TTS1 as TTS.