Q: Get/pick an image from Android's built-in Gallery app programmatically, Selecting Multiple Pictures

D: I am trying to open an image / picture in the Gallery built-in app from inside my application.
I have a URI of the picture (the picture is located on the SD card).
Do you have any suggestions?

Test Case #7


File ID: #2636538-3-cc


if (Intent.ACTION_SEND.equals(action)) {
    Uri imageUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
    shareImageWithUri(imageUri);
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action)) {
    ArrayList<Parcelable>
      list = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
    for (Parcelable p : list) {
        shareImageWithUri((Uri) p);
    }
}

    

  1. Getting a single picture doesn't seem to be working on the newest Android version 4.4 (KitKat) anymore. The _data column from the query returns a null value.
  2. - look at my answer
  3. Answered without reading the question.. -1

Comments Quality
Accurate?:
Precise?:
Concise?:
Useful?: