Andoid app restarts when user clicks on its icon
<p>As far as I know by default android app resumes when user clicks on its icon.</p>

<p>But for some reason my app (which I want to have the same behaviour) restarts.</p>

<p>When I hold the home button and then select my app from "recent" I get it resumed.
I want the same behaviour on clicking the app icon</p>

<p>actually it's the same as <a href="https://groups.google.com/forum/?fromgroups=#!topic/android-developers/UjWcsFMe6ik" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/android-developers/UjWcsFMe6ik</a>
but they didn't find an answer</p>

<p>upd:
manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p></p>

<pre><code>&lt;uses-sdk a:minSdkVersion="10" a:targetSdkVersion="11"/&gt;

&lt;uses-permission a:name="android.permission.INTERNET"/&gt;
&lt;uses-permission a:name="android.permission.ACCESS_FINE_LOCATION"/&gt;

&lt;application a:label="@string/app_name"
             a:theme="@android:style/Theme.NoTitleBar"
             a:name="myapp.AppDelegate"&gt;

    &lt;activity a:name="myapp.activities.AuthorizationActivity"
              a:label="@string/app_name"
              a:screenOrientation="portrait"
              a:alwaysRetainTaskState="true"&gt;
        &lt;intent-filter&gt;
            &lt;action a:name="android.intent.action.MAIN"/&gt;
            &lt;category a:name="android.intent.category.LAUNCHER"/&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;


    &lt;activity a:name="myapp.activities.activity1"
              a:screenOrientation="portrait"/&gt;

    &lt;activity a:name="myapp.activities.activity2"
              a:screenOrientation="portrait"/&gt;
    ...

    &lt;activity a:name="myapp.activities.activityN"
              a:screenOrientation="portrait"/&gt;

    &lt;service a:name="myapp.location.LocationService"/&gt;

&lt;/application&gt;
</code></pre>

<p> </p>
