ViewPager and Fragment lifecycle with Activity
<p>I'm using an <code>Activity</code> which has a <code>ViewPager</code> holding 2 fragments, the pager handler is some implementation of <code>FragmentPagerAdapter</code>.</p>

<p>As I understand, pager adapter handles the lifecycle of the fragments inside it.</p>

<ul>
<li><p>I found out that my Activity <code>onResume()</code> method already gets called but the fragment <code>onStart()</code> method didn't even started.
how in the world can I fix that? it destroy the whole point of lifecycle interactions between activity an fragments...</p></li>
<li><p>Since pager adapter handles the lifecycle of the <code>Fragment</code>, does this means I can no longer depend on interaction with the <code>Activity</code>? I mean, if I want the <code>Activity</code> to do something in the <code>onResume()</code> but after the <code>Fragment</code> <code>onStart()</code> is called, I just can't do it...</p></li>
</ul>

<p><strong>Edited:</strong></p>

<p>To make things clear:
Google says lifecycle of activity and fragment are going together, once one gets called, the other also gets called, e.g  </p>

<ol>
<li><p><code>Activiy</code> -> <code>onCreate()</code> , and then, <code>Fragment</code> -> <code>onCreate()</code></p></li>
<li><p><code>Activiy</code> -> <code>onResume()</code> , and then, <code>Fragment</code> -> <code>onResume()</code></p></li>
</ol>

<p>BUT! in my case I get:
<code>Activity</code> -> <code>onCreate()</code> -> <code>onStart()</code> -> <code>onResume()</code> -> <code>onPostResume()</code></p>

<p>And then:
<code>Fragment</code> -> <code>onAttach()</code> -> <code>onCreateView()</code> -> ... -><code>onResume()</code>.</p>

<p>and to be clear, I am using a pager adapter (not "state" pager) and I have an abstract base activiy in my app which all activities should extend.</p>

<pre><code>public abstract class AbsLoginAppCompatActivity extends AppCompatActivity {
.............
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Log.d(TAG, "*******************onCreate");
    //do some general stuff like check for updates on server
}
</code></pre>

<p><strong>And in my extend activity:</strong></p>

<pre><code>public class A extends AbsLoginAppCompatActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Log.e(TAG, "*******************onCreate");
    setContentView(R.layout.activity_a);
    //also set pager + adapter + give it getSupportFragmentManager()
}
</code></pre>

<p>I am using:</p>

<p><strong>android.support.v4.view.ViewPager</strong></p>

<p><strong>android.support.v4.app.FragmentPagerAdapter</strong></p>

<p><strong>android.support.v4.app.Fragment</strong></p>

<p><strong>android.support.v7.app.AppCompatActivity</strong> (for abs activity)</p>