@Override public void onClick(View v) { String strContent = String.valueOf(tv_recorded_appeal_taobao_code_url.getText()) + String.valueOf(tv_recorded_appeal_taobao_code.getText()); if (v.getId() == R.id.recorded_appeal_taobao_btn_copy) { clipboard.setText(strContent); btn_recorded_appeal_taobao_btn_copy.setEnabled(false); getHandlerContext().makeTextShort(getString(R.string.copy_success)); } else if (v.getId() == R.id.recorded_appeal_taobao_btn_send_to_mobile) { Uri smsToUri = Uri.parse("smsto:"); Intent mIntent = new Intent(android.content.Intent.ACTION_SENDTO, smsToUri); String strContent1 = "您申请的录音提取码为:" + strContent + " ,凭该提取码可在官网公开查询、下载本条通话录音,请妥善保管。客服电话:" + getString(R.string.app_phone) + "【" + getString(R.string.app_compayname) + "】"; mIntent.putExtra("sms_body", strContent1); startActivity(mIntent); } else if (v.getId() == R.id.recorded_appeal_taobao_btn_cancel) { new AlertDialog.Builder(this) .setIcon(android.R.drawable.ic_dialog_info) .setMessage(R.string.undo_extraction_code_sure) .setPositiveButton(R.string.cancle, null) .setNeutralButton( R.string.sure, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { getDataTask(3); } }) .show(); } else { super.onClick(v); } }