public void doClick(View view) { switch (view.getId()) { case R.id.button: if (((ToggleButton) view).isChecked()) { soundPool.autoResume(); } else { soundPool.autoPause(); } break; } }
@Override public void resume() { soundPool.autoResume(); }