I'm trying to change the ringer mode of the phone to RINGER_MODE_SILENT when a call is incoming by using the following lines of code.
AudioManager am = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
am.setRingerMode(AudioManager.RINGER_MODE_SILENT);
While the phone stops ringing it continue to vibrate although the docume...
Hi,
I have an HTC Hero with a major issue. It thinks that the headset/headphones are plugged in. I sent it to HTC and they said there is water damage so no fix.
I have tried toggleheadset, toggleheadset2. I've rooted my device and installed the Android 2.1 ROM. Now I found out that AudioManager.setRouting and .setWiredHeadsetOn(bool) h...
Hi,
I would like to know if anyone knows how to create a wrapper to AudioSystem?
I found a post on google code which talks about it, but there is no code.
Issue 4169
Specifically this post:
Basically, Google have knobbled the AudioManager big-time - and AudioManager is the only official way to
control the audio system. Luckil...
I read that in froyo if you change vibrate settings with setVibrateSettings() it doesn´t sync with SO vibrate settings. Then I found this workaround that people use with some of the functions in this link:
http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/SoundSettings.java;h=a735268b...
Greetings,
I'm having a bit of trouble with an Android app that I'm working on (mostly for practice and learning purposes) that uses the AudioManager object. When defining the AudioManager as follows, however, the app crashes when I run it:
//Import the AudioManager
import android.media.AudioManager;
public class RingtoneModeChanger ...
My app uses the MediaPlayer for audio playback and gives the user the option to switch between AudioManager.STREAM_VOICE_CALL and AudioManager.STREAM_MUSIC (Earphone and SpeakerPhone)
Everything works great on the emulator, HTC Droid Eris, and HTC Incredible. However when we went to test the app on the new HTC G2, the audio was so quiet...