super.onActivityResult(requestCode, resultCode, data);
<p>Hy I am developing an Android Application that contains one host activity with multiple fragments. I was using onActivityResult() method in my host Activity as well as in my fragments.</p>

<p>In host Activity</p>

<pre><code>@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    switch (requestCode)
    {
    }
}
</code></pre>

<p>In fragment</p>

<pre><code>public void onActivityResult(int requestCode, int resultCode, Intent data) {
     super.onActivityResult(requestCode, resultCode, data);        
     switch (requestCode)
    {
    }
}
</code></pre>

<p>When I started activityForResult from fragment then fragment's onActivityResult was not getting called.
I was doing it like this</p>

<pre><code>startActivityForResult(Intent.createChooser(intent, "Select File"),REQUEST_CODE);
</code></pre>

<p>I solved my problem when I added this line to my host activity's result method
super.onActivityResult(requestCode, resultCode, data);</p>

<pre><code>public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    switch (requestCode)
    {
    }
}
</code></pre>

<p>Now onActivityResult() of my fragment is getting call. 
I want to know what this line super.onActivityResult() actually do when I added it in Activities onResult method ? in which order the onActivityResult() gets call, when activity has multiple fragments.        </p>