title: How to share video (.mp4) to social media in Android App?
body: <p>I've looked in stackoverflow and saw some posts on how to share a video from the phone to another app, but none seem to work. I followed the following guide: <a href="http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent/" rel="nofollow">http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent/</a> but this also appears to not work. Does anyone have a short snippet of code to properly share a video? The following does not work with SMS Messaging, Inbox, Gmail, Google+, Facebook, or Messenger.</p>
  
  <pre><code>Intent sharingIntent = new Intent(Intent.ACTION_SEND);
  Uri videoUri = Uri.parse("/storage/emulated/0/DCIM/Camera/video.mp4");
  
  sharingIntent.setType("video/mp4");
  sharingIntent.putExtra(Intent.EXTRA_STREAM, videoUri);
  startActivity(Intent.createChooser(sharingIntent, "Share video using"));
  </code></pre>