Android Question RingToneManager

Humberto

Active Member
Licensed User
Longtime User
With mediaplayer I can change the volume to play, but using RingToneManager always play low.

I set manually the volume to maximum and if I send a whatsap message play high but using the code below always low sound

B4X:
        ph.SetVolume(ph.VOLUME_MUSIC,ph.GetMaxVolume(ph.VOLUME_MUSIC),False)
        Dim rm As RingtoneManager
        rm.Play ( rm.GetDefault( rm.TYPE_NOTIFICATION ) )

How can I play high volume the notification sound ?
 

Humberto

Active Member
Licensed User
Longtime User
If I choose "TYPE_RINGTONE" plays high volume ( OK)

If I choose "TYPE_ALARM" plays high and don´t stop ever, I had to close the program

During my test I rceive a whatsapp message with high volume just before mine with low volume
 
Upvote 0
Top