Code example for AudioManager

Methods: playSoundEffect

0
	    if (preferences.getBoolean("vibrate_on", false)) {
		VibratorUtils.getInstance(this).vibrate(preferences.getInt("pref_vibration_duration_settings", 5));
	    } 
	    if (preferences.getBoolean("sound_on", false)) {
		float f = (float) preferences.getInt("pref_keypress_sound_volume", 50) / (float) 100.0;
		am.playSoundEffect(AudioManager.FX_KEYPRESS_STANDARD, f);
	    } 
	} 
 
	@Override 
	public void onRelease(int arg0) {
	} 
 
	@Override 
	public void onText(CharSequence arg0) {
	} 
 
	@Override 
	public void swipeDown() { 
	}