android - Why onDestroy called when returning to parent activity in PAD? -


Now there is a strange question, I have two movements, some properties before A and B, A to B, B. After completion, call B, A, and B.Finish () method, but the problem is that when B is finished, one method automatically calls the diastair and again the CREAT says, Its going on?

This phenomenon is in the use of Tablet PCs, and will not appear on mobile phone usage. The pad memory is large enough and set the android: screenOrientation = "portrait"

A and B activity use the same base activity with different visual groups. C can not use the android: launchMode = "singleTop"

, even after C, attempts to open up the activity, and then c finishes, then b On normal, not executed on redeem, why would B will lead only one of the Destiny A in Return?

The life cycle is as follows:

  An on the one-on-one a resume -------- ---------- A onopose b Resume A Onist on Oncet B Onboard B ------------------- B. Call the Affinish () B. A on Destory A   

An onDestroy should not appear ah.

Please take a look at the diagram in the following link: When you call the Finnish () It will be destroyed after that call because you have done it with activity.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -