user954469
user954469

Reputation: 1113

android change volume and update icon

I need to change the volume programatically. So i use :

audiomanager.setStreamVolume(AudioManager.STREAM_RING, 0, AudioManager.FLAG_SHOW_UI);

It works but if the volume was previously set to 0, the mute icon in the status bar and within volume popup isn't modify.

How can I update the mute icon when I change volume ?

Upvotes: 0

Views: 655

Answers (1)

user942821
user942821

Reputation:

The mute icon is used for setRingerMode(int) with RINGER_MODE_SILENT.

Upvotes: 1

Related Questions