Friday, March 28, 2014

When you press the return key android4.2.2 next to an Activity will always execute onCreate?


Who knows why at 4.2 system will always be executed onCreate press the return key to an Activity? The 4.1 and below are not my program is 2.2.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Your two Activity is not the direction is not the same? For example, a landscape a portrait
Reply:
cited a floor youngc527 reply:
your two Activity is not the direction is not the same? For example, a landscape a portrait

No. If so, could lead to activity again onCreate.
There is such a difference between the same procedure as in 4.2.2 and 4.1 or under the previous system
Reply:
Which version should not be in the onCreate it is always executed, unless memory is pitiful, each being recycled
Reply:
reference to the third floor youngc527 reply:
on which version should not always perform onCreate it, unless memory is pitiful, each being recycled < / blockquote>

I also find it strange. Because I recently took my phone system updated to 4.2.2, until all OK, only to find that after the update, perform onCreate of each back. The memory is sufficient. Will not always recovered, is not 4.2.2 change mechanism?
Reply:
Should not ah unless they built a new activity before destroy? ?

        


Reply:
references, 5th Floor nosilence_2007 reply:
should not ah unless they built a new activity before you destroy? ?

I also find it strange. Useful to test your system 4.2 it?
Reply:
Just updated avd. The latest simulator seems not always perform onCreate. Is my Huawei own system problems?
Reply:
See if it is not to keep the background activity's sake
Reply:
reference to the 8th floor qq29504765 reply:
see if it is not to keep the background activity's sake

This system settings?
Reply:
reference to the 9th floor Roy_se7en reply:
Quote: references to the 8th floor qq29504765 reply:

See if it is not to keep the background activity's sake

This system settings?

No system settings can be set to retain the background activity
Reply:
Each time you press the back key to look after, there is no call to onDestroy () first.
Reply:
reference to the 10th floor qq29504765 reply:
Quote: references to the 9th floor Roy_se7en reply:

Quote: references to the 8th floor qq29504765 reply:

See if it is not to keep the background activity's sake

This system settings?

No system settings can be set to retain the background activity

That is the question. Previously has not noticed ...

No comments:

Post a Comment