Is there a way to get the name of the last video/image saved?

I have tried to do this through the MediaStore. I can find the MediaItem I’m looking form by matching the MediaItem.getUid() to the Camera.photoState().latestMediaId(). However, MediaItem.getName() returns the same string as the MediaItem.getUid().