public static MmContent createMmContent(Uri uri,String mime,long size,String fileName){
  if (mime != null) {
    if (MimeManager.isImageType(mime)) {
      return new PhotoContent(uri,mime,size,fileName);
    }
    if (MimeManager.isVideoType(mime)) {
      return new VideoContent(uri,mime,size,fileName);
    }
    if (MimeManager.isAudioType(mime)) {
      return new AudioContent(uri,mime,size,fileName);
    }
    if (MimeManager.isVCardType(mime)) {
      return new VisitCardContent(uri,mime,size,fileName);
    }
    if (MimeManager.isGeolocType(mime)) {
      return new GeolocContent(uri,size,fileName);
    }
  }
  return new FileContent(uri,size,fileName);
}

public static MmContent createMmContent ( Uri uri , String mime , long size , String fileName ) { if ( mime != null ) { if ( MimeManager . isImageType ( mime ) ) { return new PhotoContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isVideoType ( mime ) ) { return new VideoContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isAudioType ( mime ) ) { return new AudioContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isVCardType ( mime ) ) { return new VisitCardContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isGeolocType ( mime ) ) { return new GeolocContent ( uri , size , fileName ) ; } } return new FileContent ( uri , size , fileName ) ; }
create a content object
