Android Kitkat
My app plays the default notification sound each time a button is picked. After so many times, the sound stops playing.
This code is in the Starter module
My app plays the default notification sound each time a button is picked. After so many times, the sound stops playing.
This code is in the Starter module
B4X:
Sub Process_Globals
Dim gDevice As Phone
Private gPhone As PhoneVibrate
Dim gRTM As RingtoneManager
Dim gSound As String
End Sub
Sub PlaySound
gSound = gRTM.GetDefault(gRTM.TYPE_NOTIFICATION)
gRTM.Play(gSound)
gPhone.Vibrate(1000)
End Sub