@Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   personCode = getArguments().getString(PROFILE_CODE);
   if (personCode == null) personCode = AccountUtils.getActiveUserCode(getActivity());
   if (savedInstanceState != null) {
     final Parcelable[] storedFiles = savedInstanceState.getParcelableArray(FILES_KEY);
     if (storedFiles == null) {
       task = DynamicEmailUtils.getDynamicEmailFiles(personCode, this, getActivity());
     } else {
       files = new DynamicMailFile[storedFiles.length];
       for (int i = 0; i < storedFiles.length; ++i) files[i] = (DynamicMailFile) storedFiles[i];
       if (populateList()) showMainScreen();
     }
   } else task = DynamicEmailUtils.getDynamicEmailFiles(personCode, this, getActivity());
 }
 @Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   ocorrId = getArguments().getString(OCORR_CODE);
   if (savedInstanceState != null) {
     final Parcelable[] storedOoccurrences =
         savedInstanceState.getParcelableArray(OCCURRENCES_KEY);
     if (storedOoccurrences == null) {
       task = SubjectUtils.getOtherSubjectOccurrences(ocorrId, this, getActivity());
     } else {
       occurrences = new OtherSubjectOccurrences[storedOoccurrences.length];
       for (int i = 0; i < storedOoccurrences.length; ++i)
         occurrences[i] = (OtherSubjectOccurrences) storedOoccurrences[i];
       if (populateList()) showMainScreen();
     }
   } else task = SubjectUtils.getOtherSubjectOccurrences(ocorrId, this, getActivity());
 }