i have a problem about activity lifecycle in nexus 5. When i go back to previous activity onCreate() method calls on previous activity. Normally it should call onStart() method when go back to previous activity.

In other devices with android 4.3 or lower i didn't see any behaviour like this.

In manifest file i've defined

android:configChanges="keyboardHidden|orientation|screenSize"

for all activies.

Is it something about android 4.4.2 and how to fix it?

有帮助吗?

解决方案

There is a developer option to destroy all activities by default.You may have checked that. It should be at the bottom of the developer options on the first entry below the apps header.

其他提示

ethod calls on previous activity. Normally it should call onStart() method when go back to previo close previous activity using developer options first entry belohank you, my problem is solved. it was all abo

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top