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);
There is no way to catch
onActivityResult from your view, only from
And its not safe to assume that's
Context object is
Activity. In general you should not rely on this fact. Even if it seems reasonable in case with views, you still should use only methods available trough
Context interface. That's because your can't predict all side-effects on the
Activity, when you're calling
Activity specific functions.