I am making a basic meme app which I want to send the meme to Snapchat, but I'm getting an error when I try to send it.
My button code to open gallery:
public void onClick(View v) {
  Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
  pickIntent.setType("image/* video/*");
  startActivityForResult(pickIntent, MEDIA_RESULT);
}
My onActivityResult:
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (requestCode== MEDIA_RESULT  && resultCode == RESULT_OK) {
    Uri snapFile = data.getData();
    SnapMediaFactory snapMediaFactory = SnapCreative.getMediaFactory(this);
    SnapPhotoFile photoFile;
    try {
      photoFile = snapMediaFactory.getSnapPhotoFromFile(snapFile);
    } catch (SnapMediaSizeException e) {
      //error
      return;
    }
    SnapPhotoContent snapPhotoContent = new SnapPhotoContent(photoFile);
    snapCreativeKitApi.send(snapPhotoContent);
  }
}
I am getting this error:
 
    