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
Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000
My Carrier: Airtel,Docomo
Accepted Solution

Music Player Problem while Incoming call comes or long pressing End(Red) key

I m working on application in which playing music from Resource file using Player.

But the problem is When Call comes Player stops and Not restarted on End of call.

Same is happening if I switch Off device by long pressing the End(Red) key..

So How to handle this Situation? I required to play Uninterrupted music or Music will start on end of call and after switching on Device.. How to handle the cases?

Lathiya Himanshu
Please use plain text.
BlackBerry Development Advisor (Retired)
BlackBerry Development Advisor (Retired)
BVP
Posts: 150
Registered: ‎10-19-2010
My Device: Not Specified
My Carrier: Rogers

Re: Music Player Problem while Incoming call comes or long pressing End(Red) key

Hi hims_3009!

 

Your player is recieving a DEVICE_UNAVAILABLE message when it is stopped due to a phone call, and the Player is stopped for you (you don't have control over that).  When the phone call ends your Player is recieving a DEVICE_AVAILABLE event, but the Player will not be started for you.  It is up to you to restart your Player when that event comes in :smileyhappy:

Please use plain text.
Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000
My Carrier: Airtel,Docomo

Re: Music Player Problem while Incoming call comes or long pressing End(Red) key

[ Edited ]

Thanks a lot BVP,

It solved my Issue When Incoming call Receive..:smileyhappy:

 

But still is there any way to handle player when Red key is long pressed to Switch off device and again Switching on Player goes stopped and not Restarting....

 

if its not possible then I will mark post as solved.

Lathiya Himanshu
Please use plain text.
BlackBerry Development Advisor (Retired)
BlackBerry Development Advisor (Retired)
BVP
Posts: 150
Registered: ‎10-19-2010
My Device: Not Specified
My Carrier: Rogers

Re: Music Player Problem while Incoming call comes or long pressing End(Red) key

Search for 'Power Off' and click on the third link that appears :smileywink:

Please use plain text.