onNewIntent() not called after onResume()
<p>Flow:</p>

<ol>
<li>Open app (MainActivity)</li>
<li>Press home button ( calling onPause() in activity )</li>
<li><p>Starting same activity, with different intent</p>

<pre><code>Intent intent = Utils.createIntent(....., this, MainActivity.class); // this will add some extra to our intent
        intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
        startActivity(intent);
</code></pre></li>
<li><p>Nothing happens.</p></li>
<li><p>onCreate() gets called. (onDestroy wasn't called)</p></li>
<li><p>onResume() is called</p></li>
</ol>

<p>My activity in xml</p>

<pre><code>&lt;activity
            android:name=".ui.activities.MainActivity"
            android:launchMode="singleTop"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustPan" /&gt;
</code></pre>

<p>NOte: if I don't press home button (app doesn't pause), onNewIntent will be called correctly.</p>