Use sistem of logging - Geisonszo/TecProg-Emergo GitHub Wiki

deleteThirdContact.setOnClickListener(new View.OnClickListener() {

  public void onClick(View emergencyContactView) {

    deleteContact(nameThirdContact,phoneThirdContact,saveThirdContact,
            IDTHIRDCONTACT,updateThirdContact,deleteThirdContact);
    Log.e("Delete contact"," Was delete at informations about third emergency contact");

    saveThirdContact.setOnClickListener(new View.OnClickListener() {

      public void onClick(View emergencyContactView) {

        if (signInthirdContact() == false) {

          saveThirdContact.setOnClickListener(new View.OnClickListener() {

            public void onClick(View emergencyContactView) {

              signInthirdContact();
              disableField(nameThirdContact,phoneThirdContact);
            }
          });
          Log.e("Emergency Contact save!"," Not have problem for save emergency contact");
        } else {

          disableSaveButton(saveThirdContact,updateThirdContact,
                  deleteThirdContact);
        }
      }
    });