当我安装我的应用程序从市场,我有时会看到以下行为:
导航离开这个程序调用的onStop,如预期
返回到应用程序调用的onCreate为主要活动,而不仅仅是重新启动/ onResume
无论如何,每次用户离开/返回到应用程序时,onCreate都会继续调用。很显然,这会导致在状态等方面出现重大问题。
有时重新启动手机会修复此问题,有时不会。从.adb安装可防止此行为。从行为的应用程序,在图标触摸(同时运行)
日志:从搞砸应用
2-10 18:56:33.855: INFO/ActivityManager(1482): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.sidekickApp/.Main } from pid 1604
02-10 18:56:33.855: VERBOSE/HtcAppUsageStats(1482): (launch app, package): (Sidekick App, com.sidekickApp)
02-10 18:56:33.865: DEBUG/PhoneWindow(1604): couldn't save which view has focus because the focused view [email protected] has no id.
02-10 18:56:33.865: DEBUG/Background traffic light(1604): traffic light: GREEN, mBackgroundTrafficLight = false
02-10 18:56: