Hi,

I m trying to increase the Notification Volume by my app while in
Phone is in silent for all volume using following code.

int NOTIFICATIONVOLUME_B =
audio.getStreamVolume(AudioManager.STREAM_NOTIFICATION);

audio.setStreamVolume(AudioManager.STREAM_NOTIFICATION, audio
                                
.getStreamMaxVolume(AudioManager.STREAM_NOTIFICATION),
AudioManager.FLAG_SHOW_UI);

int NOTIFICATIONVOLUME_A =
audio.getStreamVolume(AudioManager.STREAM_NOTIFICATION);


Both NOTIFICATIONVOLUME_B & NOTIFICATIONVOLUME_A are printing the same
0 value. But the same code works for STREAM_MUSIC.




-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to