How do i multiselect images in the Gallery and send there URL to my activity?
<p>hi
How do i multiselect images in the Gallery and send there URL to my activity?
In the gallery I have added my Item to the share menu. But i can only share
one image and making my Activity start. This code give me the URL for one image.
Is it possible to set up the Gallery or the share menu so that user can
select one or many pictures?</p>

<p>`if (Intent.ACTION_SEND.equals(action)) 
 { if extras.containsKey(Intent.EXTRA_STREAM)) 
  { Uri uri = (Uri)extras.getParcelable(Intent.EXTRA_STREAM); //path to image
    Toast toast = Toast.makeText(this, "path: "+     getRealPathFromURI(uri), 
    Toast.LENGTH_SHORT); toast.show(); 
    return; 
  } else if 
   (extras.containsKey(Intent.EXTRA_TEXT)) { 
        } </p>

<p>} public String getRealPathFromURI(Uri contentUri) { String[] proj = { 
  MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(contentUri, 
  proj, null, null, null); int column_index = 
  cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); 
  cursor.moveToFirst(); return cursor.getString(column_index);
}`</p>
