private void requestToRefreshActivityView(String duration) {
   if (MyCallRecorderApplication.getInstance().getActivity() != null) {
     String phoneName = "";
     Uri phoneNameUri = Utils.getContactUriTypeFromPhoneNumber(getContentResolver(), phoneNo, 1);
     if (phoneNameUri == null || StringUtility.isEmpty(phoneNameUri.toString())) {
       phoneName = "";
     } else phoneName = phoneNameUri.toString();
     int isFavorite = Utils.isCheckFavouriteContactByPhoneNo(this, phoneNo);
     RecordingSession session =
         new RecordingSession(
             phoneNo,
             MyCallRecorderConstant.STATE_INCOMING,
             mFileName,
             phoneName,
             isFavorite,
             mCreatedDate,
             duration);
     Utils.requestRefreshViewToAddNewRecord(
         MyCallRecorderApplication.getInstance().getActivity(),
         ActivityHome.FRAGMENT_ALL_RECORDING,
         session);
   }
 }