In an Activity
, I start an image-choosing activity like this:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivityForResult(Intent.createChooser(intent,"Select Image"), 0);
and get the result by implementing onActivityResult()
in that same Activity
.
Now I have a custom View
class, from which I want to do the same thing, or similar.
But I want this class to get the result, and not have to make the parent Activity
implement onActivityResult()
, only to hand over the result to my class.
How can I do this?
Thanks.