The problem is that I need to call the onActivityResult method for MainActivity. In this activity, I turn first to the "Search" activity, and then to the "Add member" activity. After in the activity "Add member", click on the button "Add member". It should call onActivityResult on the MainActivity.
Code from AddMember to call MainActivity:
Intent intentDealCreation = new Intent(AddMemberInfoActivity.this, MainActivity.class); startActivityForResult(intentDealCreation,1); Code in MainActivity:
@Override protected void onActivityResult(int requestCode, int resultCode, Intent result) { super.onActivityResult(requestCode, resultCode, result); if (resultCode == RESULT_OK) { Toast.makeText(this,"Привет, я тут!!!", Toast.LENGTH_SHORT).show(); } }