title: How to restrict for display only local video, when picking video from gallery like in WhatsApp Messenger
body: <p>Hi I have used below code to pick video from gallery </p>
  
  <pre><code>Intent intent = new Intent();
    intent.setType("video/*");
              intent.setAction(Intent.ACTION_GET_CONTENT);
               intent.addCategory(Intent.CATEGORY_OPENABLE);
              intent = Intent.createChooser(intent, context.getString(R.string.choose_video));
              startActivity(activity, fragment, intent, REQUEST_VIDEO_FROM_GALLERY);
  
   private static void startActivity(Activity activity, Fragment fragment, Intent intent, int requestCode) {
          if (fragment != null) {
              fragment.startActivityForResult(intent, requestCode);
          } else {
              activity.startActivityForResult(intent, requestCode);
          }
      }
  </code></pre>
  
  <p>But its not only showing the local video's like in WhatsApp Messenger, when opening gallery. I'm in need to restrict to show only local video while opening gallery like in WhatsApp Messenger. Please suggest me some idea.</p>
  
  <p>I  have also tried <strong>EXTRA_LOCAL_ONLY</strong> only like in below mentioned link. It shows local videos, but it also shows other documents. </p>
  
  <p><a href="https://stackoverflow.com/questions/27762377/android-why-intent-extra-local-only-shows-google-photos">Android : Why Intent.EXTRA_LOCAL_ONLY shows Google Photos</a></p>
  
  <p>Can any one please suggest me an idea to show the local video when picking video from gallery using intent? Thanks in advance.</p>