List of usage examples for android.media AudioManager playSoundEffect
public void playSoundEffect(int effectType, float volume)
From source file:Main.java
public static void playKeyPress(Context c) { AudioManager am = (AudioManager) c.getSystemService(Context.AUDIO_SERVICE); am.playSoundEffect(AudioManager.FX_KEY_CLICK, (float) 0.25); }