private void sendSMS(String message,String contactInformation){
  ResolvedContact rc=mContactsResolver.resolveContact(contactInformation,ContactsResolver.TYPE_CELL);
  if (rc == null) {
    send(R.string.chat_no_match_for,contactInformation);
  }
 else   if (rc.isDistinct()) {
    sendSMSByPhoneNumber(message,rc.getNumber(),rc.getName());
  }
 else {
    askForMoreDetails(rc.getCandidates());
  }
}

private void sendSMS ( String message , String contactInformation ) { ResolvedContact rc = mContactsResolver . resolveContact ( contactInformation , ContactsResolver . TYPE_CELL ) ; if ( rc == null ) { send ( R . string . chat_no_match_for , contactInformation ) ; } else if ( rc . isDistinct ( ) ) { sendSMSByPhoneNumber ( message , rc . getNumber ( ) , rc . getName ( ) ) ; } else { askForMoreDetails ( rc . getCandidates ( ) ) ; } }
sends an sms message returns an error to the user if the contact could not be found
