if(audio.isBluetoothScoAvailableOffCall()){
audio.setStreamMute(AudioManager.STREAM_RING,true);
audio.setbluetoothsco(true);audio.startBluetoothSco();
}
Asked
Active
Viewed 337 times
0

SurvivalMachine
- 7,946
- 15
- 57
- 87

Mubashshir
- 171
- 3
- 10
-
refer http://stackoverflow.com/questions/15563921/how-to-detect-incoming-calls-in-an-android-device – sasikumar Jul 01 '16 at 09:34
-
u mean i have to mute music on call_state_ringing?. – Mubashshir Jul 01 '16 at 09:59
-
yes...detect incoming call state and mute music or whatever you want – sasikumar Jul 01 '16 at 10:00
-
but for bluetooth headset its not working. – Mubashshir Jul 01 '16 at 10:16
-
ohh actually its a bug.we cannot change bluetooth default ringtone programatically. – Mubashshir Jul 01 '16 at 11:23
-
@Mubashshir, is your call getting incoming ringing sound over the bluetooth by this `audio.setStreamMute(AudioManager.STREAM_RING,false);` – ॐ Rakesh Kumar Oct 13 '18 at 06:46