How can I change the code below to allow multiple images selection from the gallery as I am unsure which option to select as unable to get it working. The code below works for single image selection:
public void openGallery() {
Intent intentImageContent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intentImageContent, loadImageResults);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data){
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == loadImageResults) {
if (resultCode == RESULT_OK && data != null) {
Intent intent = new Intent(PhotosActivity.this, PhotosActivity.class);
intent.putExtra("pickImage", data.getData());
startActivity(intent);
}
}
}