I am getting the user chosen images from the gallery through onActivityResult()
as follow:
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == OPEN_MEDIA_PICKER) {
// Make sure the request was successful
if (resultCode == RESULT_OK && data != null) {
ArrayList<String> selectionResult = data.getStringArrayListExtra("result");
System.out.println(selectionResult);
}
}
}
When I try to print the selectionResult
to the console, it prints the directory of every image as string to the console.
How can I store the actual images in an array and send them through the intent to the next activity?