Android Question Volume in RingtoneManager

vbmundo

Well-Known Member
Licensed User
Hi,

RingtoneManager is a great tool, but all Ringtones be played with the maximum volume.

I put this code before run the RingtoneManager but doesn't work.

B4X:
            Dim VolumenNuevo As Int 
            VolumenActual=Telefono.GetVolume(Telefono.VOLUME_MUSIC)
            VolumenNuevo=Telefono.GetMaxVolume(Telefono.VOLUME_MUSIC)/5
            Telefono.SetVolume(Telefono.VOLUME_MUSIC,VolumenNuevo,False)
            RM.ShowRingtonePicker("RM",RM.TYPE_RINGTONE,True,"")

How can I put the volume in low value before open the RingtoneManager ? because when you select a ringtone sound stuns you

Thanks
 

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…