I created custom compound view where I incorporate functionality to take pictures.
I'm calling it like this (from view):
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
((Activity)mContext).startActivityForResult(intent, index);
This part works good. What I don't know how to do is how do I implement onActivityResult
inside my custom view?
Or should I catch this inside Activity and than re-route into my view? Doesn't look like very nice solution..
Best Answer
You actually can do it like this:
The trick is using an auxiliary temp fragment.