private void broadcastVolumeWillBeUpdated(int streamType, int index) { Intent notificationIntent = new Intent(ACTION_AUDIO_VOLUME_UPDATE); notificationIntent.putExtra(EXTRA_STREAM_TYPE, streamType); notificationIntent.putExtra(EXTRA_VOLUME_INDEX, index); notificationIntent.putExtra(EXTRA_RINGER_MODE, EXTRA_VALUE_UNKNOWN); service.sendBroadcast(notificationIntent, null); }
public void broadcastMediaChanged() { service.sendBroadcast(mediaStateChangedIntent, SipManager.PERMISSION_USE_SIP); }