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

Native Development

Reply
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

How to change the ringer volume and phone profile

Hi. How do I change the ringer volume and phone profile of the device programmatically? Thanks.

Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: How to change the ringer volume and phone profile

Hi isn't there any way to do it?
Please use plain text.
Developer
Royster86
Posts: 102
Registered: ‎03-13-2012
My Device: 9360, P'9981, Z10
My Carrier: Vodafone, Virgin

Re: How to change the ringer volume and phone profile

Hi,

 

As far as I am aware there are no APIs to modify built in or default profiles - I think it has to be done by the user in the settings app.

 

I believe you can however set a notification up for your app, which the user can then manage, and will appear within the notifications screen in the settings app, but I guess that isn't what you are asking for?

 

Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: How to change the ringer volume and phone profile

Thanks for your reply. I am really surprised that it isn't there. Because it will be really helpful if anyone want an app that will lower the ringer volume if he enters a certain area or if it is a certain time.
Please use plain text.
Developer
slashkyle
Posts: 800
Registered: ‎10-16-2012
My Device: Red Z10, Dev Alpha C
My Carrier: Telus

Re: How to change the ringer volume and phone profile

This would be a really useful feature, if you can't find anything else about it I would suggest searching Jira to see if it has been requested & if not, create a ticket to request access to these features

 

https://www.blackberry.com/jira/secure/Dashboard.jspa

Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: How to change the ringer volume and phone profile

[ Edited ]

At the moment, I'm not entirely sure if there is a way through Cascades, but here are some areas you can check for Native...

 

Very simple example given by raj_jyani:

http://supportforums.blackberry.com/t5/Cascades-Development/Get-and-Set-the-Master-Volume/td-p/23203...

 

Sample Native Apps, Multimedia - Audio Settings https://developer.blackberry.com/native/sampleapps/bb10/

 

Audio Manager Library - Audio Volume https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.audiomanager.lib_ref/topic/about_...

Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: How to change the ringer volume and phone profile

Hi the audio settings app only changes the volume for the current app. It doesn't change the ringer volume.

I could not run a project using audio manager library. It shows " No rule to make target `libaudio_manager.a', needed by `E:/WORKSPACE_NEW/AudioControl/arm/o.le-v7/AudioControl'." error. I added library LIBS+=audio_manager. But still doesn't work. But anyone knows if this manager can change ringer volume? Or it is also changes on app volumes? Thanks.
Please use plain text.
Developer
Zmey
Posts: 1,510
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: How to change the ringer volume and phone profile

Hi, I can't help with the topic, but linking errors most likely will be fixed by adding -l before library name:
LIBS += -laudio_manager

Andrey Fidrya, @zmeyc on twitter
Please use plain text.
Developer
haf-med
Posts: 28
Registered: ‎05-02-2013
My Device: Q10
My Carrier: Q10

Re: How to change the ringer volume and phone profile

Hi, I am also interesting to know who to change ringer volume and profile.
I need it in my cascade application
Please help us
Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: How to change the ringer volume and phone profile

Is it possible yet after this august updates?
Please use plain text.