Adjust volume though AudioManager without UI showing up
<p>I'm trying to adjust a volume stream in Android, but the UI keeps showing up every time I set the volume or adjust it.</p>

<p>Anyone know of a way to prevent the UI from showing up? Looking at the source code it should not show up unless I pass the flag FLAG_SHOW_UI which has a constant value of 1. It doesn't show all the time. 1/5 times. But if I pass the UI flag, it will show always.</p>

<p><a href="http://source-android.frandroid.com/frameworks/base/core/java/android/view/VolumePanel.java" rel="nofollow">http://source-android.frandroid.com/frameworks/base/core/java/android/view/VolumePanel.java</a></p>

<pre><code>protected void onVolumeChanged(int streamType, int flags) {

        if (LOGD) Log.d(TAG, "onVolumeChanged(streamType: " + streamType + ", flags: " + flags + ")");

        if ((flags &amp; AudioManager.FLAG_SHOW_UI) != 0) {
            if (mActiveStreamType == -1) {
                reorderSliders(streamType);
            }
            onShowVolumeChanged(streamType, flags);
        }
</code></pre>

<p>Kevin</p>
