Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100

play media when call ends

hi

 

can i play a wav file on call events?

when i tried to play it on CallEndedByUser event, i got the following exception

 

javax.microedition.media.MediaException: Media cannot start while phone is active.

 

any other alternative?  

Jeet Bhatt, India
Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: play media when call ends

Hi,

 

idea is to start a timerthread that starts f.e. one second (ore more) after CallEndedByUser.

Then start playback of sound.... should work when, cause phone won't be active any more ;-)

 

Regards,

Jochen