May I ask some further questions as below:

On Monday, March 28, 2011 11:19:17 PM UTC-5, Dianne Hackborn wrote:

> On Mon, Mar 28, 2011 at 11:01 AM, Nathan Fig <[email protected]<javascript:>
> > wrote:
>  
>> 2) How is the root activity identified? Is it simply the one with the
>> DEFAULT, LAUNCHER or MAIN intent filters?
>>
> This is basically the first activity in the stack.  The Intent is the 
> Intent used to start the stack.
>  
>
 
 
If in my application FOOL the MAIN activity is A, I set activity A is 
android:clearTaskOnLaunch="true" 
the task activitily list is:
A -> B -> C -> D -> E -> F
For some reason, when the memory is limited, System destroy some 
activities, say A and B,
so the task activitliy list becomes:
C -> D -> E -> F
 
Now I press HOME button
Then start my application FOOL.
 
Now, what should be the first and only activity, if A is cleared by System?
Would it be:  
C -> D -> E -> F -> A ???
 
 
==> Anothe question:  
When are the activities cleared?
 
Say the process is
(i) HOME 
(ii) launch my application FOOL 
(iii) Activility list: A -> B ->C -> D->E  (suppose A is not destroyed by 
System)
(iv) HOME button
(v) launch my application FOOL 
 
Are  B ->C -> D->E  destroyed immediately after (iv), or immediately after 
(v)?
 
Thanks in advance!
 
 
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to