@Override
 public void onClick(View v) {
  switch (v.getId()) {
  case R.id.btButton:   //블루투스 패어링 버튼
   if (bt_connectButton.isClickable()) {
    // Attempt to disconnect from the device
    onActivityResult(REQUEST_CONNECT_DEVICE_INSECURE, Activity.RESULT_OK, null);
   } else {
    // Attempt to connect to the device
    onActivityResult(REQUEST_CONNECT_DEVICE_SECURE, Activity.RESULT_OK, null);
    
   }
   break;
    }
 }
    private final Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
         if (myProgressDialog.isShowing()) {
    myProgressDialog.dismiss();
   }
            .......
    };
public void onActivityResult(int requestCode, int resultCode, Intent data) {
        if(D) Log.d(TAG, "onActivityResult " + resultCode);
        switch (requestCode) {
        case REQUEST_CONNECT_DEVICE_SECURE:
            // When DeviceListActivity returns with a device to connect
            if (resultCode == Activity.RESULT_OK) {
             myProgressDialog = ProgressDialog.show(this, getResources()
      .getString(R.string.pleaseWait), getResources()
      .getString(R.string.makingConnectionString), true);
                connectDevice(data, true);
            }
            break;
                 .....
           }
	블루투스 채팅 소스를 이용해서 버튼을 누를 시에 패어링 할 선택창이 뜨게 하려고 하는데
	버튼을 누르면 오류가 납니다...logcat으로 확인을 할 수 없는 것 같고...어디가 잘 못 되었는지만
	가르쳐 주신다면 제가 잘못 된 부분 생각해서 고쳐 보도록 하겠습니다.. ㅜㅜ