On my main activity I added the following intent-filter
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
So when I press the home button my main activity is showed. But I would like to the last seen activity to show, not the main one. How can it be achieved?