My BroadcastReceiver raises a notification for spe...
# android
t
My BroadcastReceiver raises a notification for specific text messages when they arrive. I've provided Ringtone Preference to set exclusive tone for my app's notifications to distinguish them from other notifications. My notification sound of approx 3 seconds length starts to play but in approx 1 second, user's default SMS app also plays a sound for the incoming message, and my sound is overridden without being played fully. I could not find any API to sequentially chain the notification sounds. One way I can think of is to delay my notification by a couple of seconds to play after default SMS app's sound, but there is no guarantee that some other app wouldn't override. What is the best solution for this case?
stackoverflow 2