mediaChooser = new Intent(Intent.ACTION_GET_CONTENT);
mediaChooser.setType("video/*, images/*");
startActivityForResult(mediaChooser, 1);
and read the retrieved data:
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) {
FilePath = data.getData().toString();
}
Problem however is that the FilePath reads something like: content://media/external/images/media/2904
which is an URL that I cannot use for loadImage to display the image that was selected. In the end I would like to copy the image to the data folder and display it from there, but I'm even more in the dark on how to do that, any clues or hints?