title: Custom View calling startActivityForResult
body: <p>I created custom compound view where I incorporate functionality to take pictures. </p>
  
  <p>I'm calling it like this (from view):</p>
  
  <pre><code>Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  ((Activity)mContext).startActivityForResult(intent, index);
  </code></pre>
  
  <p>This part works good. What I don't know how to do is how do I implement <code>onActivityResult</code> inside my custom view?</p>
  
  <p>Or should I catch this inside Activity and than re-route into my view? Doesn't look like very nice solution..</p>