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
Regular Contributor
Posts: 63
Registered: ‎08-30-2012
My Device: 9900
My Carrier: Various

How can i create one play/pause button like youtube in black berry java

[ Edited ]

i want to create a  play/pause button like youtube in blackberry java,how can we handle two actions with single button i.e when the button is clicked  for first time it should paly the audio,and again,if the  same button is clicked  again the audio should be stopped,how can we handle two actions with single button and how can we change the images like play/ pause?

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How can i create one play/pause button like youtube in black berry java

search the forum for a bitmap button, there are numerous threads about it.
you can change the pictures on click and track the state with a boolean.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter