@NonNull
    public static String getFilenameFromPath(@NonNull final String path) {
        final int posSegment = path.lastIndexOf('/');
        return (posSegment >= 0) ? path.substring(posSegment + 1) : path;
    }
Get the guessed filename from a path

@param path filename, optionally including path
@return the filename without path
main/src/main/java/cgeo/geocaching/utils/FileUtils.java