Top "Android-audiomanager" questions

AudioManager provides access to volume and ringer mode control.

How to get current ringtone in Android?

I have found lots of examples how to get default ringtone. Something like that: Uri alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_…

android uri ringtone android-audiomanager
Ringer mode change listener Broadcast receiver?

AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); switch (am.getRingerMode()) { case AudioManager.RINGER_MODE_SILENT: Log.i("MyApp","Silent mode"); …

android broadcastreceiver android-audiomanager
How to Play audio through speaker even when headset is plugged in?

The title of the question might look repeated, but my problem is a sometimes problem and causes glitches. I have …

android android-audiomanager
How to play or resume music of another music player from my code

In my Android app I want to play or resume the played music after I pause it. I got my …

android android-audiomanager resume android-music-player
Alternative to the deprecated AudioManager.isWiredHeadsetOn?

The method AudioManager.isWiredHeadsetOn() is deprecated from api level 14, how do we now detect if a wired headset is connected?

android android-audiomanager
stream volume in SoundPool vs volume in AudioManager

I am so confused... SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) volume here …

android soundpool android-audiomanager
What is the difference between AudioManager's stream types at low level?

There are several stream types in AudioManager. How did they differ at low level? Could it be that usage of …

android android-audiomanager
Volume change Listener: Is registerMediaButtonEventReceiver preferable to onKeyDown?

Looking for a "most comprehensive & compatible (i.e. all Android versions...)" way to listen to volume changes, I found 2 …

android broadcastreceiver android-broadcast android-audiomanager
Android: How to generate a frequency?

Is there a nice way in Android to generate and then play a frequency (eg. 1000hz, 245hz)?

android audio android-audiomanager
Use AudioTrack with AudioManager setSpeakerphoneOn

I am using AudioTrack to play the sound I recieve through UDP sockets. I am getting a lot of noise …

android audiotrack android-audiomanager