As far as I know by default android app resumes when user clicks on its icon.
But for some reason my app (which I want to have the same behavior) restarts.
When I hold the home button and then select my app from "recent" I get it resumed. I want the same behavior on clicking the app icon.
actually it's the same as https://groups.google.com/forum/?fromgroups=#!topic/android-developers/UjWcsFMe6ik but they didn't find an answer
upd: manifest:
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk a:minSdkVersion="10" a:targetSdkVersion="11"/>
<uses-permission a:name="android.permission.INTERNET"/>
<uses-permission a:name="android.permission.ACCESS_FINE_LOCATION"/>
<application a:label="@string/app_name"
a:theme="@android:style/Theme.NoTitleBar"
a:name="myapp.AppDelegate">
<activity a:name="myapp.activities.AuthorizationActivity"
a:label="@string/app_name"
a:screenOrientation="portrait"
a:alwaysRetainTaskState="true">
<intent-filter>
<action a:name="android.intent.action.MAIN"/>
<category a:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity a:name="myapp.activities.activity1"
a:screenOrientation="portrait"/>
<activity a:name="myapp.activities.activity2"
a:screenOrientation="portrait"/>
...
<activity a:name="myapp.activities.activityN"
a:screenOrientation="portrait"/>
<service a:name="myapp.location.LocationService"/>
</application>