Intent intent = new Intent(getActivity(), LoginActivity.class); startActivityForResult(intent, Contants.REQUEST_CODE);
People with development experience use startActivityForResult(intent, Contants.REQUEST_CODE);
instead of startActivity(intent);
The value of Contents.REQUEST_CODE is set to be greater than or equal to 0, and the default is set to 0 first;