Activity的onConfigurationChanged函数调用时序

Activity的onConfigurationChanged函数调用时序

时序图如下:

 

onConfigurationChanged sequence

 

注1:

向当前系统中所有处于激活状态的进程发送CONFIGURATION_CHANGED消息。当该消息被ApplicationThreadhandleConfigurationChanged函数处理。在handleConfigurationChanged函数中有一个关键函数collectComponentCallbacksLocked。在collectComponentCallbacksLocked会找到ActivitiesServicesProvidersApplicationsComponentCallbacks(即包含onConfigurationChanged函数的接口),随后调用它们。如果当前activityperformConfigurationChanged函数被调用。

 

注2:

ensureActivityConfigurationLocked函数会根据activityandroid:configChanges性里指明,则通过调用ActivityManagerService.relaunchActivityLocked函数重新启动activity;如果指明了的话,调用r.app.thread.scheduleActivityConfigurationChanged(r)处理CONFIGURATION_CHANGED消息,这里因为前面已经通过onConfigurationChanged函数。

 

3:在onConfigurationChanged被调用前,activity的资源已被更新,所以新的资源可以被安全的使用。Activity的资源更新处理在ActivityThread.java文件。调用顺序如下:

handleConfigurationChanged(Configuration config)   [当收到CONFIGURATION_CHANGED消息时]

    applyConfigurationToResourcesLocked(Configuration config)

 

 

 

具体Log如下,关键点用红色字体标明:

06-14 14:06:06.479: INFO/WindowManager(72): Setting rotation to 1, animFlags=1
06-14 14:06:06.498: INFO/ActivityManager(72): Updating configuration to: { scale=1.0 imsi=0/0 loc=null touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=0}
06-14 14:06:06.498: INFO/ActivityManager(72): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.498: VERBOSE/ActivityManager(72): Sending to proc com.david.hello002 new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.498: VERBOSE/ActivityThread(405): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.508: VERBOSE/ActivityThread(405): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.508: VERBOSE/ActivityThread(405): Changing resources android.content.res.Resources@44e8c020 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.508: VERBOSE/ActivityThread(405): Config callback com.david.hello002.ActivityMain@44e90328: shouldChangeConfig=true
06-14 14:06:06.508: INFO/hello002(405): ActivityMain:onConfigurationChanged
06-14 14:06:06.508: INFO/hello002(405): ActivityMain:onConfigurationChanged -- ORIENTATION_LANDSCAPE
06-14 14:06:06.508: VERBOSE/ActivityThread(405): Config callback android.app.Application@44e8c508: shouldChangeConfig=true
06-14 14:06:06.518: VERBOSE/ActivityManager(72): Sending to proc com.android.quicksearchbox new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.518: VERBOSE/ActivityThread(346): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.518: VERBOSE/ActivityThread(346): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.518: VERBOSE/ActivityThread(346): Changing resources android.content.res.Resources@4511c4b0 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.518: VERBOSE/ActivityThread(346): Config callback com.android.quicksearchbox.google.GoogleSuggestionProvider@45126c18: shouldChangeConfig=true
06-14 14:06:06.518: VERBOSE/ActivityThread(346): Config callback com.android.quicksearchbox.ShortcutsProvider@4512af08: shouldChangeConfig=true
06-14 14:06:06.518: VERBOSE/ActivityThread(346): Config callback com.android.quicksearchbox.QsbApplicationWrapper@451265b8: shouldChangeConfig=true
06-14 14:06:06.530: VERBOSE/ActivityManager(72): Sending to proc com.svox.pico new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.530: VERBOSE/ActivityThread(368): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.539: VERBOSE/ActivityThread(368): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.539: VERBOSE/ActivityThread(368): Changing resources android.content.res.Resources@44e8c908 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.539: VERBOSE/ActivityThread(368): Config callback com.svox.pico.providers.SettingsProvider@44e8ff20: shouldChangeConfig=true
06-14 14:06:06.539: VERBOSE/ActivityThread(368): Config callback android.app.Application@44e8cdf0: shouldChangeConfig=true
06-14 14:06:06.539: VERBOSE/ActivityManager(72): Sending to proc com.david.hello new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.549: VERBOSE/ActivityThread(426): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.549: VERBOSE/ActivityThread(426): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.549: VERBOSE/ActivityThread(426): Changing resources android.content.res.Resources@44e8be90 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.549: VERBOSE/ActivityThread(426): Config callback android.app.Application@44e8c378: shouldChangeConfig=true
06-14 14:06:06.549: VERBOSE/ActivityManager(72): Sending to proc com.android.inputmethod.latin new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.559: VERBOSE/ActivityThread(149): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.559: VERBOSE/ActivityThread(149): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.559: VERBOSE/ActivityThread(149): Changing resources android.content.res.Resources@44e8cc00 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.559: VERBOSE/ActivityThread(149): Config callback com.android.inputmethod.latin.LatinIME@44e9b370: shouldChangeConfig=true
06-14 14:06:06.559: INFO/System.out(149): INFLATING from resource: 17367083
06-14 14:06:06.559: INFO/System.out(149): **************************
06-14 14:06:06.569: INFO/System.out(149): Creating root view: LinearLayout
06-14 14:06:06.569: INFO/System.out(149): **************************
06-14 14:06:06.569: INFO/System.out(149): ******** Creating view: LinearLayout
06-14 14:06:06.569: INFO/System.out(149): Created view is: android.widget.LinearLayout@44eca9c0
06-14 14:06:06.569: INFO/System.out(149): -----> start inflating children
06-14 14:06:06.569: INFO/System.out(149): ******** Creating view: LinearLayout
06-14 14:06:06.569: INFO/System.out(149): Created view is: android.widget.LinearLayout@44ecb558
06-14 14:06:06.569: INFO/System.out(149): ******** Creating view: FrameLayout
06-14 14:06:06.569: INFO/System.out(149): Created view is: android.widget.FrameLayout@44ecbc00
06-14 14:06:06.569: INFO/System.out(149): ******** Creating view: FrameLayout
06-14 14:06:06.569: INFO/System.out(149): Created view is: android.widget.FrameLayout@44ecc288
06-14 14:06:06.569: INFO/System.out(149): ******** Creating view: FrameLayout
06-14 14:06:06.569: INFO/System.out(149): Created view is: android.widget.FrameLayout@44ecc910
06-14 14:06:06.569: INFO/System.out(149): -----> done inflating children
06-14 14:06:06.579: VERBOSE/ActivityManager(72): Sending to proc com.android.defcontainer new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(384): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityManager(72): Sending to proc system new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Changing resources android.content.res.Resources@44fff580 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Changing resources android.content.res.Resources@44e91ca0 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Changing resources android.content.res.Resources@44fba098 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Changing resources android.content.res.Resources@450ed428 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Config callback com.android.internal.service.wallpaper.ImageWallpaper@44f936c8: shouldChangeConfig=true
06-14 14:06:06.579: VERBOSE/ActivityThread(72): Config callback com.android.providers.settings.SettingsProvider@44ef8198: shouldChangeConfig=true
06-14 14:06:06.588: VERBOSE/ActivityManager(72): Sending to proc com.android.launcher new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Changing resources android.content.res.Resources@44ecea90 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Changing resources android.content.res.Resources@44e8c480 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Changing resources android.content.res.Resources@44eac520 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Changing resources android.content.res.Resources@44ec5498 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Setting activity com.android.launcher2.Launcher newConfig={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Config callback com.android.launcher2.LauncherProvider@44e9bd88: shouldChangeConfig=true
06-14 14:06:06.588: VERBOSE/ActivityThread(156): Config callback com.android.launcher2.LauncherApplication@44e9af90: shouldChangeConfig=true
06-14 14:06:06.588: VERBOSE/ActivityManager(72): Sending to proc com.cooliris.media new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.588: VERBOSE/ActivityThread(358): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.600: VERBOSE/ActivityManager(72): Sending to proc android.process.media new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.600: VERBOSE/ActivityThread(247): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.600: VERBOSE/ActivityManager(72): Sending to proc com.android.settings new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.600: VERBOSE/ActivityThread(338): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.600: VERBOSE/ActivityManager(72): Sending to proc com.android.providers.calendar new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.610: VERBOSE/ActivityThread(328): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.610: VERBOSE/ActivityManager(72): Sending to proc com.android.email new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.610: VERBOSE/ActivityThread(309): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.610: VERBOSE/ActivityManager(72): Sending to proc com.android.phone new config { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.620: VERBOSE/ActivityThread(153): SCHEDULE 118 CONFIGURATION_CHANGED: 0 / { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Changing resources android.content.res.Resources@44ea5d58 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Changing resources android.content.res.Resources@44e8c5d0 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.providers.telephony.TelephonyProvider@44eb3928: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.providers.telephony.MmsProvider@44eab928: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.phone.IccProvider@44eb4cd8: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.providers.telephony.MmsSmsProvider@44eb9178: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.providers.telephony.SmsProvider@44eb2578: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityThread(153): Config callback com.android.phone.PhoneApp@44ea3870: shouldChangeConfig=true
06-14 14:06:06.620: VERBOSE/ActivityManager(72): Broadcast: Intent { act=android.intent.action.CONFIGURATION_CHANGED flg=0x60000000 } ordered=false
06-14 14:06:06.620: VERBOSE/ActivityManager(72): Enqueing broadcast: android.intent.action.CONFIGURATION_CHANGED replacePending=true
06-14 14:06:06.620: VERBOSE/ActivityManager(72): Enqueueing parallel broadcast BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}: prev had 0
06-14 14:06:06.629: VERBOSE/ActivityManager(72): Schedule broadcasts: current=false
06-14 14:06:06.629: VERBOSE/ActivityManager(72): Received BROADCAST_INTENT_MSG
06-14 14:06:06.629: VERBOSE/ActivityManager(72): Ensuring correct configuration: HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain}
06-14 14:06:06.629: VERBOSE/ActivityManager(72): Checking to restart com.david.hello002.ActivityMain: changed=0xa0, handles=0xa0, newConfig={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.629: VERBOSE/ActivityManager(72): Sending new config to HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain}
06-14 14:06:06.629: VERBOSE/ActivityThread(405): SCHEDULE 125 ACTIVITY_CONFIGURATION_CHANGED: 0 / android.os.BinderProxy@44e89428
06-14 14:06:06.629: VERBOSE/ActivityThread(405): Handle activity config changed: com.david.hello002.ActivityMain
06-14 14:06:06.629: VERBOSE/ActivityThread(405): Config callback com.david.hello002.ActivityMain@44e90328: shouldChangeConfig=false
06-14 14:06:06.639: INFO/ActivityManager(72): Config didn't destroy HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain}, ensuring others are correct.
06-14 14:06:06.639: VERBOSE/ActivityManager(72): ensureActivitiesVisible behind HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain} configChanges=0xa0
06-14 14:06:06.639: VERBOSE/ActivityManager(72): Make visible? HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain} finishing=false state=RESUMED
06-14 14:06:06.639: VERBOSE/ActivityManager(72): Skipping: already visible at HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain}
06-14 14:06:06.639: VERBOSE/ActivityManager(72): Stopping: fullscreen at HistoryRecord{44fb80e8 com.david.hello002/.ActivityMain}
06-14 14:06:06.639: VERBOSE/ActivityManager(72): Make invisible? HistoryRecord{44f0f8c8 com.android.launcher/com.android.launcher2.Launcher} finishing=false state=STOPPED behindFullscreen=true
06-14 14:06:06.639: VERBOSE/ActivityManager(72): Already invisible: HistoryRecord{44f0f8c8 com.android.launcher/com.android.launcher2.Launcher}
06-14 14:06:06.639: VERBOSE/ActivityThread(72): Config callback android.app.Application@44edcd10: shouldChangeConfig=true
06-14 14:06:06.639: VERBOSE/ActivityThread(72): Config callback android.app.Application@45007a70: shouldChangeConfig=true
06-14 14:06:06.639: VERBOSE/ActivityThread(149): Config callback android.app.Application@44e8d0e8: shouldChangeConfig=true
06-14 14:06:06.668: VERBOSE/ActivityThread(405): Skipping new config: curSeq=7, newSeq=7
06-14 14:06:06.668: VERBOSE/ActivityThread(72): Skipping new config: curSeq=7, newSeq=7
06-14 14:06:06.690: VERBOSE/ActivityManager(72): processNextBroadcast: 1 broadcasts, 0 ordered broadcasts
06-14 14:06:06.709: VERBOSE/ActivityManager(72): Processing parallel broadcast BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: VERBOSE/ActivityManager(72): Delivering non-ordered to registered BroadcastFilter{44fdde10 ReceiverList{44fddd98 72 system/1000 local:44fd7ab0}}: BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: INFO/ActivityManager(72): Delivering to BroadcastFilter{44fdde10 ReceiverList{44fddd98 72 system/1000 local:44fd7ab0}} (seq=-1): BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: VERBOSE/ActivityManager(72): Delivering non-ordered to registered BroadcastFilter{44f0f0b8 ReceiverList{44f13f70 72 system/1000 local:44f50578}}: BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: INFO/ActivityManager(72): Delivering to BroadcastFilter{44f0f0b8 ReceiverList{44f13f70 72 system/1000 local:44f50578}} (seq=-1): BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: VERBOSE/ActivityManager(72): Delivering non-ordered to registered BroadcastFilter{44f6e858 ReceiverList{44faefd8 72 system/1000 local:44ef8af8}}: BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: INFO/ActivityManager(72): Delivering to BroadcastFilter{44f6e858 ReceiverList{44faefd8 72 system/1000 local:44ef8af8}} (seq=-1): BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.709: VERBOSE/ActivityManager(72): Done with parallel broadcast BroadcastRecord{45050ca8 android.intent.action.CONFIGURATION_CHANGED}
06-14 14:06:06.829: VERBOSE/ActivityThread(384): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(384): Changing resources android.content.res.Resources@44e8cff0 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(384): Config callback android.app.Application@44e8d4d8: shouldChangeConfig=true
06-14 14:06:06.829: VERBOSE/ActivityThread(358): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(358): Changing resources android.content.res.Resources@44e8c9e0 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(358): Config callback com.cooliris.picasa.PicasaContentProvider@44e964f0: shouldChangeConfig=true
06-14 14:06:06.829: VERBOSE/ActivityThread(358): Config callback android.app.Application@44e8cec8: shouldChangeConfig=true
06-14 14:06:06.829: VERBOSE/ActivityThread(338): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(338): Changing resources android.content.res.Resources@4511b840 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.829: VERBOSE/ActivityThread(338): Config callback com.android.settings.wifi.DataProvider@451479c8: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(338): Config callback android.app.Application@4511bd28: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(328): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(328): Changing resources android.content.res.Resources@4511c858 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(328): Config callback com.android.providers.calendar.CalendarProvider2@4512a948: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(328): Config callback android.app.Application@4511cd40: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Changing resources android.content.res.Resources@4511be18 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Config callback com.android.email.provider.AttachmentProvider@451313d8: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Config callback com.android.email.provider.EmailProvider@4512f728: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Config callback com.android.exchange.provider.ExchangeProvider@45132490: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(309): Config callback com.android.email.Email@4512a8f0: shouldChangeConfig=true
06-14 14:06:06.838: VERBOSE/ActivityThread(247): Handle configuration changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(247): Changing resources android.content.res.Resources@4511dc38 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.838: VERBOSE/ActivityThread(247): Changing resources android.content.res.Resources@4511c690 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Changing resources android.content.res.Resources@45131708 config to: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=34 uiMode=17 seq=7}
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Config callback com.android.providers.downloads.DownloadProvider@4512fed8: shouldChangeConfig=true
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Config callback com.android.providers.drm.DrmProvider@45135928: shouldChangeConfig=true
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Config callback com.android.providers.media.MediaProvider@45127fd8: shouldChangeConfig=true
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Config callback android.app.Application@4511cb78: shouldChangeConfig=true
06-14 14:06:06.850: VERBOSE/ActivityThread(247): Config callback android.app.Application@451589e8: shouldChangeConfig=true
06-14 14:06:07.059: VERBOSE/ActivityThread(72): Skipping new config: curSeq=7, newSeq=7
06-14 14:06:09.199: DEBUG/dalvikvm(72): GC_EXPLICIT freed 8881 objects / 656496 bytes in 103ms

 

你可能感兴趣的:(Activity的onConfigurationChanged函数调用时序)