Ich implementiere Notification wie folgt. Der Standardalarm-Sound spielt gut, aber nur einmal. Alles was ich will, ist es wiederholt zu spielen bis der Tap registriert ist.Android Notification Builder: So stellen Sie Soundso ein, dass Sound in einem Looper abgespielt wird
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle("I Am Fine")
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(NOTIFICATION_MESSAGE))
.setContentText(NOTIFICATION_MESSAGE)
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_LIGHTS | Notification.DEFAULT_VIBRATE);
Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
mBuilder.setSound(alarmSound,AudioManager.STREAM_MUSIC);
Der zweite Parameter zu setSound zeigt keinen Effekt. Bitte helfen Sie!
Ich implementiere das. Hoffe das wird funktionieren. – inderbagga