interceptKeyBeforeDispatching函數中增加以下:
if(!down)
{
AudioManager am = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);
am.playSoundEffect(SoundEffectConstants.CLICK);
}
if(!down)
{
AudioManager am = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);
am.playSoundEffect(SoundEffectConstants.CLICK);
}