BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-17-2009, 12:11 PM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: verison
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default mute all sounds from phone when my application running

Please Login to Remove!

Hi,

I need to mute all sounds from phone when my application running (Or switch to silent profile). ie when my application is running when an incoming call come. i wanted to make it mute.


I tried the following codes in my Application Class Constructor
--------------
Alert.mute(true);
Audio.setVolume(0);
Alert.setVolume(0);
Alert.stopVibrate();
Alert.stopAudio();
Alert.stopMIDI();
Alert.setBuzzerVolume(0);
Alert.stopBuzzer();
---------
Alert.setADPCMVolume(0);
Alert.stopADPCM();
------------


But this cannot mute my phone .

ie The phone make ring sound during an incoming call.

I aso tried the code during the "callIncoming" event of "PhoneListener"

But the result is same


Have any solution for this.
This is possible in Nokia Phone .


Is there any options in RIM API ?


Thanks in advance

Joe
Offline  
Old 08-17-2009, 01:45 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The sounds are controlled by the BB profile. You cannot influence these programmatically via the Java API's.

Some folks have programmatically switched profiles using key event injection.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HP 84447A Amplifier/ Dual Amplifier Operating and Service Manual
$59.99
HP 84447A Amplifier/ Dual Amplifier Operating and Service Manual pictureAdvance Motion Controls X10 SX25A20A-AT3 SX25A20AAT3 Three Phase Sinusoidal
$159.0
Advance Motion Controls X10 SX25A20A-AT3 SX25A20AAT3 Three Phase Sinusoidal  picturePigflytech Ultra-thin Amplified Indoor HDTV Antenna 50 Mile Range
$12.99
Pigflytech Ultra-thin Amplified Indoor HDTV Antenna 50 Mile Range pictureBanner Q45BB6FQ5 10-30V dc, 250mA max. Infrared Fiber Optic Sensor Amplifier
$22.79
Banner Q45BB6FQ5 10-30V dc, 250mA max. Infrared Fiber Optic Sensor Amplifier pictureNEW ELMO MOTION CONTROL WHIA10/60E01 WHI-A10/60
$125.0
NEW ELMO MOTION CONTROL  WHIA10/60E01  WHI-A10/60 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.