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
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry
Accepted Solution

Volume slider in blaackberry

Hello All,

 

I have to create volume slider in my application . My basic requirement is to get volume range.(from 10 to 70) whichever user set.

 

Please anyone tell me how to create volume slider in blackberry?

 

Thanks in Advance

 

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

Re: Volume slider in blaackberry

this should help:
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/Audio.html#getVolume()
----------------------------------------------------------
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
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: Volume slider in blaackberry

Thanks Simon,

 

This link realy help me to access device audio contents.

But i want to develope ui for volume slider. on which i have to handle click event.

 

I want to create ui for volume slider like inbuilt control in BB10 (i.e  VolumeSlider ).

Can you plaese give any solution for the same?

 

Thanks in Advance.

 

Developer
Posts: 121
Registered: ‎05-31-2012
My Device: 9900
My Carrier: Airtel

Re: Volume slider in blaackberry

[ Edited ]

You can check the sider field provided here http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...

 

You can specify Max-min and interval values according to your requirement.

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

Re: Volume slider in blaackberry

since 6.0
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/component/progressindicator...

or if you need an older API
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/component/GaugeField.html
----------------------------------------------------------
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
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: Volume slider in blaackberry

Thanks Rishikesh,

 

I  have downloaded sample app from link provided by you.  It works perfectly for me.