private void badMusic() {
   progress.show();
   mWifiCRUDForMusic.badMusic(
       new ResultForMusicListener() {
         public void onResult(String errorCode, List<WifiMusicInfo> infos) {
           mHandler.post(dismissDialog);
           if (!WifiCRUDUtil.isSuccessAll(errorCode)) {
             ToastUtils.show(getApplicationContext(), "操作失败");
           }
         }
       });
 }
  private void goodMusicOrCancel() {
    progress.show();
    if (currMusicInfo != null && currMusicInfo.is_isCollected()) {
      mWifiCRUDForMusic.delete(
          currMusicInfo.getMusicId() + "",
          new ResultForMusicListener() {
            public void onResult(String errorCode, List<WifiMusicInfo> infos) {
              mHandler.post(dismissDialog);
              if (!WifiCRUDUtil.isSuccessAll(errorCode)) {
                ToastUtils.show(context, R.string.ba_config_box_info_error_toast);
              } else {
                runOnUiThread(
                    new Runnable() {
                      public void run() {
                        collectTime = System.currentTimeMillis();
                        goodMusicBtn.setImageResource(R.drawable.player_good_music_selector);
                      }
                    });
              }
            }
          });
    } else {
      mWifiCRUDForMusic.goodMusic(
          new ResultForMusicListener() {
            public void onResult(String errorCode, List<WifiMusicInfo> infos) {
              mHandler.post(dismissDialog);
              if (!WifiCRUDUtil.isSuccessAll(errorCode)) {
                ToastUtils.show(context, R.string.ba_config_box_info_error_toast);
              } else {
                runOnUiThread(
                    new Runnable() {

                      @Override
                      public void run() {
                        collectTime = System.currentTimeMillis();
                        goodMusicBtn.setImageResource(R.drawable.player_good_music_pressed);
                      }
                    });
              }
            }
          });
    }
  }
 public void showDialog() {
   if (progress == null) return;
   progress.show();
 }