Android - Can a group of activities or a task be removed as soon as I leave it?
<p>Let's say I have a menu that has 3 items which go to activity 1, activity 2 and activity 3 correspondingly.  Activity 1 can navigate to activity 1a, then navigate to activity 1b, etc. In order to save memory, when the user click on menu to go to activity 2, can I destroy all the activities that are related to activity 1? </p>

<p>I have looked at all the intent flags and tasks carefully but I could not find anything to achieve that. Any help is appreciated. Thanks.</p>
