How can I silence the android phone in java? A code sample is VERY helpful.
Use the AudioManager class's methods to silence audio.
For instance, to turn off the ringer use manager.setRingerMode(AudioManager.RINGER_MODE_SILENT)
You can get an instance of the AudioManager by calling Context.getSystemService(Context.AUDIO_SERVICE)
http://developer.android.com/reference/android/media/AudioManager.html#setRingerMode(int)