I have an application in which i move from activity A->B->C->D. Now i want that when i press a button on D my stack should be A->D. i have done this from android API level 8 to 10 but on android 4.0 i have "do not keep activities" settings that kill my activities when in background thus making Intent.FLAG_ACTIVITY_CLEAR_TOP and Intent.FLAG_ACTIVITY_NEW_TASK useless as my activity a is not alive.
How can i handle this situation. Any help is greaty appriciated.