title: calling startActivityForResult from Custom ViewGroup
body: <p>I have a custom group view that extends from LinearLayout:</p>
  
  <pre><code>class MyCustomView extends LinearLayout {
      public MyCustomView(Context context, AttributeSet attrs) {
          super(context, attrs);
          onCreateView(context);
      }
  
      public MyCustomView(Context context, int checkableId) {
          super(context);
          onCreateView(context);
      }
  
      private void onCreateView(Context context){
          View.inflate(context, R.id.my_custom_view, null);
      }
  }
  </code></pre>
  
  <p>In that custom group view I have a button and when the user clicks that button I need to call an activity with startActivityForResult because I need the return from that activity.</p>
  
  <p>But the LinearLayout doesn't implement the startActivityForResult neither the onActivityResult.</p>
  
  <p>So my question is: how can I call startActivityForResult from "MyCustomView"?</p>