You are here
Home > Posts tagged "Android Studio"

Observing Different Volume Streams and Keeping Fixed in Android

Hello Friends, Today I am going to share a way to observing different volume streams and keeping fixed in Android. There are different volume streams in Android i.e STREAM_MUSIC, STREAM_RING, STREAM_ALARM etc. We'll use ContentObserver to detect change in volume. This code sample can be used where fixed volume needed