Reflections are your friend. It worked for me.
try { Method m = AudioManager.class.getMethod("isStreamMute", int.class); isMuted = (Boolean) m.invoke(am, AudioManager.STREAM_MUSIC); } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) { System.out.println(e); }
Update: now the public boolean isStreamMute (int streamType) is available in API 23 without using reflection.
source share