[android-developers] Re: How to control a sound notification duration?
Reviving an old thread... On Dec 13 2008, 4:11 pm, Dave Sparks wrote: > Some of the ringtones contain special metadata to make them loop. > These sounds will play forever and aren't appropriate for > notifications. Unless you want really annoy your users. :) > > The notifications directory has sounds that don't loop. Could you clarify on how the FLAG_INSISTENT flag for a notification applies in this case? I've tried to use it in conjunction with a sound in the /system/media/ audio/alarms directory, but the sound is played only once. Does the flag only mean something for ringtones that are set to loop? Thanks, Frédéric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control a sound notification duration?
Some of the ringtones contain special metadata to make them loop. These sounds will play forever and aren't appropriate for notifications. Unless you want really annoy your users. :) The notifications directory has sounds that don't loop. On Dec 13, 12:02 am, elDoudou wrote: > Thank you for the information. > > I was mislead because the Android built-in ring tones under 'system/ > media/audio/ringtones' seem to loop when played. Yes, the idea of > scheduling an alert for cancelling the notification is a solution, if > the sound is looping. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control a sound notification duration?
Thank you for the information. I was mislead because the Android built-in ring tones under 'system/ media/audio/ringtones' seem to loop when played. Yes, the idea of scheduling an alert for cancelling the notification is a solution, if the sound is looping. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control a sound notification duration?
The length of the notification sound determines the length. You can select persistent if you want the sound to play until the user dismisses it. You can cancel a notification, so you could conceivably send your self a delayed message to cancel a notification after a period of time. On Dec 12, 2:00 am, elDoudou wrote: > Maybe my request was not clear enough: is there a way to indicate for > how long a sound is played when a sound-based notification is > triggered, please? > > Thank you, > Édouard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control a sound notification duration?
Maybe my request was not clear enough: is there a way to indicate for how long a sound is played when a sound-based notification is triggered, please? Thank you, Édouard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---