title: maximum image selection limit from gallery Android
body: <p>I am trying to get image's Uri in the Gallery built-in app from inside my application.</p>
  
  <p>so, I was using the Intent below, but it selected many more image.</p>
  
  <p>i want to set limitation. less than 3</p>
  
  <pre><code>@Override
  public void onClick(View v) {
      Intent intent = new Intent( );
      intent.setType("image/*");
      intent.setAction(Intent.ACTION_GET_CONTENT);
      intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
      startActivityForResult(Intent.createChooser(intent, "select images"), PICK_IMAGE_MULTIPLE);
  }
  </code></pre>
  
  <p>how do i fix this.</p>
  
  <p>Do you have any suggestions?</p>