What's happening between onResume and the activity is really displayed?
<p>I didn't nothing in the onResume of my Activity, but it still takes about 5 seconds between the onResume is called and the activity is really displayed. </p>

<p>What's happening under there?</p>

<p>Here is the code snip:</p>

<p>onResume:</p>

<pre><code>@Override
protected void onResume() {
    Log.d(TAG, "on resume &gt;&gt;&gt;");
    super.onResume();
}
</code></pre>

<p>logcat:</p>

<pre><code>05-28 10:36:05.621 D/LoginDialogActivity(  447): on resume &gt;&gt;&gt;
05-28 10:36:06.231 I/ARMAssembler(   52): generated scanline__00000077:03010104_00000004_00000000 [ 22 ipp] (41 ins) at [0x3e3358:0x3e33fc] in 5646001 ns
05-28 10:36:10.690 I/ActivityManager(   52): Displayed activity com.aimi.appstore/.ui.activity.LoginDialogActivity: 5169 ms (total 5331 ms)
</code></pre>

<p>AndroidManifest.xml:</p>

<pre><code>&lt;activity android:name=".ui.activity.LoginDialogActivity"
        android:theme="@android:style/Theme.Dialog" /&gt;
</code></pre>
