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
New Developer
Posts: 19
Registered: ‎05-13-2009
My Device: Not Specified
Accepted Solution

Listener for inserting/removing headset?

For my music player, I would like it to pause when the user pulls out the headphones, but I can't seem to find a listener for this. Ideas?
Developer
Posts: 26
Registered: ‎06-19-2009
My Device: Not Specified

Re: Listener for inserting/removing headset?

Apparently there is no listener - see below thread  

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=31988&query.id=89...

 

 

You could make a thread to run in the background and periodically invoke 

 

Audio.isHeadsetConnected()