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