BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-03-2010, 11:34 AM   #1 (permalink)
New Member
 
Join Date: Jan 2010
Model: 9630
PIN: N/A
Carrier: VZW
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Programmattically disable "new email" alert

Please Login to Remove!

I'm working on a piece of software for BB which, as part of it's operation plays a list of short audio files, one after the other. If the user receives an email (or sms) while the audio is playing, the audio cuts out so the "new email" chime can sound. The audio that was playing is canceled outright and my process goes on to play the next piece of audio in the queue.

I'd like to know if there's a way to disable the audio for the "new message alert" temporarily while my short piece of audio plays (or to maybe capture the event, add it to my audio processing queue to play it as soon as my current audio is done, then go on the play my next piece of audio) ?

Thanks in advance!
-Chris-
Offline  
Old 02-03-2010, 01:55 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

No.
Offline  
Old 02-04-2010, 03:09 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

May try a hack around this problem:

Register for AlertListener/AlertListener2 and once you get midiDone or audioDone alert, then you can check the time elapsed since the audio was started versus the audio actual timespan. This should be done for the audio files you are playing.

Last edited by pooja.a.maheshwari : 02-04-2010 at 03:15 AM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.