【Android 返回堆栈管理】打印 Android 中当前运行的 Activity 任务栈信息 | Activity 任务栈信息分析 | Activity 在相同 Stack 中的不同 Task(一)

简介: 【Android 返回堆栈管理】打印 Android 中当前运行的 Activity 任务栈信息 | Activity 任务栈信息分析 | Activity 在相同 Stack 中的不同 Task(一)

文章目录

一、打印 Android 中当前运行的 Activity 任务栈信息

二、Activity 任务栈信息分析

三、Activity 在相同 Stack 的不同 Task 情况





一、打印 Android 中当前运行的 Activity 任务栈信息


使用如下命令 , 打印 Android 手机中的 Activity 栈 :


adb shell dumpsys activity activities


命令行输出结果 : 打开 CSDN 客户端 , 然后任意点击一篇博客进入 , 输入内容如下 ;

image.png



C:\Users\octop>adb shell dumpsys activity activities
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
Display #0 (activities from top to bottom):
  Stack #365: type=standard mode=fullscreen
  isSleeping=false
  mBounds=Rect(0, 0 - 0, 0)
    Task id #2967
    mBounds=Rect(0, 0 - 0, 0)
    mMinWidth=-1
    mMinHeight=-1
    mLastNonFullscreenBounds=null
    * TaskRecord{818ac96 #2967 A=net.csdn.csdnplus U=0 StackId=365 sz=2}
      userId=0 effectiveUid=u0a589 mCallingUid=u0a589 mUserSetupComplete=true mCallingPackage=net.csdn.csdnplus
      affinity=net.csdn.csdnplus
      intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.csdn.csdnplus/.activity.SplashActivity}
      realActivity=net.csdn.csdnplus/.activity.SplashActivity
      autoRemoveRecents=false isPersistable=true numFullscreen=2 activityType=1
      rootWasReset=true mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
      Activities=[ActivityRecord{b5b0b75 u0 net.csdn.csdnplus/.activity.MainActivity t2967}, ActivityRecord{f7f215 u0 net.csdn.csdnplus/.activity.BlogDetailActivity t2967}]
      askedCompatMode=false inRecents=true isAvailable=true
      mRootProcess=ProcessRecord{acfdace 20850:net.csdn.csdnplus/u0a589}
      stackId=365
      hasBeenVisible=true mResizeMode=RESIZE_MODE_UNRESIZEABLE mSupportsPictureInPicture=false isResizeable=false lastActiveTime=1319867313 (inactive for 35s)
      * Hist #1: ActivityRecord{f7f215 u0 net.csdn.csdnplus/.activity.BlogDetailActivity t2967}
          packageName=net.csdn.csdnplus processName=net.csdn.csdnplus
          launchedFromUid=10589 launchedFromPackage=net.csdn.csdnplus userId=0
          app=ProcessRecord{acfdace 20850:net.csdn.csdnplus/u0a589}
          Intent { cmp=net.csdn.csdnplus/.activity.BlogDetailActivity (has extras) }
          frontOfTask=false task=TaskRecord{818ac96 #2967 A=net.csdn.csdnplus U=0 StackId=365 sz=2}
          taskAffinity=net.csdn.csdnplus
          realActivity=net.csdn.csdnplus/.activity.BlogDetailActivity
          baseDir=/data/app/net.csdn.csdnplus-AKxdXv4cmCAwI4i4p3DLtA==/base.apk
          dataDir=/data/user/0/net.csdn.csdnplus
          stateNotNeeded=false componentSpecified=true mActivityType=standard
          compat={420dpi} labelRes=0x7f11008e icon=0x7f0807ef theme=0x7f120023
          mLastReportedConfigurations:
           mGlobalConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=undefined} s.161}
           mOverrideConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          CurrentConfiguration={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          taskDescription: label="null" icon=null iconResource=0 iconFilename=null primaryColor=fff5f5f5
           backgroundColor=fffafafa
           statusBarColor=ff757575
           navigationBarColor=ff000000
          launchFailed=false launchCount=1 lastLaunchTime=-35s702ms
          haveState=false icicle=null
          state=RESUMED stopped=false delayedResume=false finishing=false
          keysPaused=false inHistory=true visible=true sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_NOT_SHOWN
          fullscreen=true noDisplay=false immersive=false launchMode=0
          frozenBeforeDestroy=false forceNewConfig=false
          mActivityType=standard
          waitingVisible=false nowVisible=true lastVisibleTime=-35s110ms
          resizeMode=RESIZE_MODE_UNRESIZEABLE
          mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
          maxAspectRatio=2.3
      * Hist #0: ActivityRecord{b5b0b75 u0 net.csdn.csdnplus/.activity.MainActivity t2967}
          packageName=net.csdn.csdnplus processName=net.csdn.csdnplus
          launchedFromUid=10589 launchedFromPackage=net.csdn.csdnplus userId=0
          app=ProcessRecord{acfdace 20850:net.csdn.csdnplus/u0a589}
          Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=net.csdn.csdnplus/.activity.MainActivity }
          frontOfTask=true task=TaskRecord{818ac96 #2967 A=net.csdn.csdnplus U=0 StackId=365 sz=2}
          taskAffinity=net.csdn.csdnplus
          realActivity=net.csdn.csdnplus/.activity.MainActivity
          baseDir=/data/app/net.csdn.csdnplus-AKxdXv4cmCAwI4i4p3DLtA==/base.apk
          dataDir=/data/user/0/net.csdn.csdnplus
          stateNotNeeded=false componentSpecified=true mActivityType=standard
          compat={420dpi} labelRes=0x7f11008e icon=0x7f0807ef theme=0x7f12022c
          mLastReportedConfigurations:
           mGlobalConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=undefined} s.161}
           mOverrideConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          CurrentConfiguration={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          taskDescription: label="null" icon=null iconResource=0 iconFilename=null primaryColor=fff5f5f5
           backgroundColor=fffafafa
           statusBarColor=ff757575
           navigationBarColor=ff000000
          launchFailed=false launchCount=0 lastLaunchTime=-1m34s561ms
          haveState=true icicle=Bundle[mParcelledData.dataSize=25948]
          state=STOPPED stopped=true delayedResume=false finishing=false
          keysPaused=false inHistory=true visible=false sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_NOT_SHOWN
          fullscreen=true noDisplay=false immersive=false launchMode=2
          frozenBeforeDestroy=false forceNewConfig=false
          mActivityType=standard
          waitingVisible=false nowVisible=false lastVisibleTime=-1m33s467ms
          connections=[ConnectionRecord{47e823f u0 CR net.csdn.csdnplus/.module.im.socket.JWebSocketClientService:@577de5e}, ConnectionRecord{6447a37 u0 CR net.csdn.csdnplus/.module.im.socket.JWebSocketClientService:@577de5e}]
          resizeMode=RESIZE_MODE_UNRESIZEABLE
          mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
          maxAspectRatio=2.3
    Running activities (most recent first):
      TaskRecord{818ac96 #2967 A=net.csdn.csdnplus U=0 StackId=365 sz=2}
        Run #1: ActivityRecord{f7f215 u0 net.csdn.csdnplus/.activity.BlogDetailActivity t2967}
        Run #0: ActivityRecord{b5b0b75 u0 net.csdn.csdnplus/.activity.MainActivity t2967}
    mResumedActivity: ActivityRecord{f7f215 u0 net.csdn.csdnplus/.activity.BlogDetailActivity t2967}
    mLastPausedActivity: ActivityRecord{b5b0b75 u0 net.csdn.csdnplus/.activity.MainActivity t2967}
  Stack #0: type=home mode=fullscreen
  isSleeping=false
  mBounds=Rect(0, 0 - 0, 0)
    Task id #2605
    mBounds=Rect(0, 0 - 0, 0)
    mMinWidth=-1
    mMinHeight=-1
    mLastNonFullscreenBounds=null
    * TaskRecord{937f032 #2605 I=com.google.android.apps.nexuslauncher/.NexusLauncherActivity U=0 StackId=0 sz=1}
      userId=0 effectiveUid=u0a64 mCallingUid=u0a64 mUserSetupComplete=true mCallingPackage=com.google.android.apps.nexuslauncher
      intent={act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.google.android.apps.nexuslauncher/.NexusLauncherActivity}
      realActivity=com.google.android.apps.nexuslauncher/.NexusLauncherActivity
      autoRemoveRecents=false isPersistable=true numFullscreen=1 activityType=2
      rootWasReset=false mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
      Activities=[ActivityRecord{958eefd u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t2605}]
      askedCompatMode=false inRecents=true isAvailable=true
      mRootProcess=ProcessRecord{1c38859 14689:com.google.android.apps.nexuslauncher/u0a64}
      stackId=0
      hasBeenVisible=true mResizeMode=RESIZE_MODE_RESIZEABLE mSupportsPictureInPicture=false isResizeable=true lastActiveTime=1319802016 (inactive for 100s)
      * Hist #0: ActivityRecord{958eefd u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t2605}
          packageName=com.google.android.apps.nexuslauncher processName=com.google.android.apps.nexuslauncher
          launchedFromUid=0 launchedFromPackage=null userId=0
          app=ProcessRecord{1c38859 14689:com.google.android.apps.nexuslauncher/u0a64}
          Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.google.android.apps.nexuslauncher/.NexusLauncherActivity }
          frontOfTask=true task=TaskRecord{937f032 #2605 I=com.google.android.apps.nexuslauncher/.NexusLauncherActivity U=0 StackId=0 sz=1}
          taskAffinity=null
          realActivity=com.google.android.apps.nexuslauncher/.NexusLauncherActivity
          baseDir=/system/priv-app/NexusLauncherPrebuilt/NexusLauncherPrebuilt.apk
          dataDir=/data/user/0/com.google.android.apps.nexuslauncher
          stateNotNeeded=true componentSpecified=false mActivityType=home
          compat={420dpi} labelRes=0x7f110030 icon=0x7f080039 theme=0x7f120002
          mLastReportedConfigurations:
           mGlobalConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1794, 1080) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=undefined} s.159}
           mOverrideConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=home} s.159}
          CurrentConfiguration={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=home} s.161}
          OverrideConfiguration={0.0 ?mcc?mnc ?localeList ?layoutDir ?swdp ?wdp ?hdp ?density ?lsize ?long ?ldr ?wideColorGamut ?orien ?uimode ?night ?touch ?keyb/?/? ?nav/? winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=null mWindowingMode=undefined mActivityType=home}}
          taskDescription: label="null" icon=null iconResource=0 iconFilename=null primaryColor=fff5f5f5
           backgroundColor=fffafafa
           statusBarColor=0
           navigationBarColor=0
          launchFailed=false launchCount=0 lastLaunchTime=-7d0h15m12s36ms
          haveState=true icicle=Bundle[mParcelledData.dataSize=4772]
          state=STOPPED stopped=true delayedResume=false finishing=false
          keysPaused=false inHistory=true visible=false sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_NOT_SHOWN
          fullscreen=true noDisplay=false immersive=false launchMode=2
          frozenBeforeDestroy=false forceNewConfig=false
          mActivityType=home
          waitingVisible=false nowVisible=false lastVisibleTime=-1m42s424ms
          connections=[]
          resizeMode=RESIZE_MODE_RESIZEABLE
          mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
    Running activities (most recent first):
      TaskRecord{937f032 #2605 I=com.google.android.apps.nexuslauncher/.NexusLauncherActivity U=0 StackId=0 sz=1}
        Run #0: ActivityRecord{958eefd u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t2605}
    mLastPausedActivity: ActivityRecord{958eefd u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t2605}
  Stack #363: type=standard mode=fullscreen
  isSleeping=false
  mBounds=Rect(0, 0 - 0, 0)
    Task id #2965
    mBounds=Rect(0, 0 - 0, 0)
    mMinWidth=-1
    mMinHeight=-1
    mLastNonFullscreenBounds=null
    * TaskRecord{531dc60 #2965 A=com.bgq.novelread U=0 StackId=363 sz=1}
      userId=0 effectiveUid=u0a138 mCallingUid=u0a64 mUserSetupComplete=true mCallingPackage=com.google.android.apps.nexuslauncher
      affinity=com.bgq.novelread
      intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity}
      realActivity=com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity
      autoRemoveRecents=false isPersistable=true numFullscreen=1 activityType=1
      rootWasReset=true mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
      Activities=[ActivityRecord{cb06cad u0 com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity t2965}]
      askedCompatMode=false inRecents=true isAvailable=true
      mRootProcess=ProcessRecord{d852551 9568:com.bgq.novelread/u0a138}
      stackId=363
      hasBeenVisible=true mResizeMode=RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION mSupportsPictureInPicture=false isResizeable=true lastActiveTime=1316902441 (inactive for 3000s)
      * Hist #0: ActivityRecord{cb06cad u0 com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity t2965}
          packageName=com.bgq.novelread processName=com.bgq.novelread
          launchedFromUid=10064 launchedFromPackage=com.google.android.apps.nexuslauncher userId=0
          app=ProcessRecord{d852551 9568:com.bgq.novelread/u0a138}
          Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity bnds=[35,252][237,510] }
          frontOfTask=true task=TaskRecord{531dc60 #2965 A=com.bgq.novelread U=0 StackId=363 sz=1}
          taskAffinity=com.bgq.novelread
          realActivity=com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity
          baseDir=/data/app/com.bgq.novelread-KDa6kmk2keZVGG3XWDretQ==/base.apk
          dataDir=/data/user/0/com.bgq.novelread
          stateNotNeeded=false componentSpecified=true mActivityType=standard
          compat={420dpi} labelRes=0x7f090024 icon=0x7f030000 theme=0x7f0b01b1
          mLastReportedConfigurations:
           mGlobalConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=undefined} s.161}
           mOverrideConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          CurrentConfiguration={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=standard} s.161}
          taskDescription: label="null" icon=null iconResource=0 iconFilename=null primaryColor=ff212121
           backgroundColor=ff303030
           statusBarColor=ff000000
           navigationBarColor=ff000000
          launchFailed=false launchCount=0 lastLaunchTime=-21m22s238ms
          haveState=true icicle=Bundle[EMPTY_PARCEL]
          state=STOPPED stopped=true delayedResume=false finishing=false
          keysPaused=false inHistory=true visible=false sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_REMOVED
          fullscreen=true noDisplay=false immersive=false launchMode=0
          frozenBeforeDestroy=false forceNewConfig=false
          mActivityType=standard
          waitingVisible=false nowVisible=false lastVisibleTime=-21m20s303ms
          resizeMode=RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION
          mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
    Running activities (most recent first):
      TaskRecord{531dc60 #2965 A=com.bgq.novelread U=0 StackId=363 sz=1}
        Run #0: ActivityRecord{cb06cad u0 com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity t2965}
    mLastPausedActivity: ActivityRecord{cb06cad u0 com.bgq.novelread/com.bqg.novelread.ui.splash.SplashActivity t2965}
  Stack #1: type=assistant mode=fullscreen
  isSleeping=false
  mBounds=Rect(0, 0 - 0, 0)
    Task id #2606
    mBounds=Rect(0, 0 - 0, 0)
    mMinWidth=-1
    mMinHeight=-1
    mLastNonFullscreenBounds=null
    * TaskRecord{a8b11b5 #2606 A=com.tencent.android.qqdownloader.desktopwin U=0 StackId=1 sz=1}
      userId=0 effectiveUid=u0a522 mCallingUid=u0a522 mUserSetupComplete=true mCallingPackage=com.tencent.android.qqdownloader
      affinity=com.tencent.android.qqdownloader.desktopwin
      intent={flg=0x10810000 cmp=com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity}
      realActivity=com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity
      autoRemoveRecents=false isPersistable=false numFullscreen=0 activityType=4
      rootWasReset=false mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
      Activities=[ActivityRecord{129e742 u0 com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity t2606}]
      askedCompatMode=false inRecents=true isAvailable=true
      stackId=1
      hasBeenVisible=true mResizeMode=RESIZE_MODE_RESIZEABLE mSupportsPictureInPicture=false isResizeable=true lastActiveTime=1212990654 (inactive for 106912s)
      * Hist #0: ActivityRecord{129e742 u0 com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity t2606}
          packageName=com.tencent.android.qqdownloader processName=com.tencent.android.qqdownloader:daemon
          launchedFromUid=10522 launchedFromPackage=com.tencent.android.qqdownloader userId=0
          app=ProcessRecord{909f72c 6274:com.tencent.android.qqdownloader:daemon/u0a522}
          Intent { flg=0x10810000 cmp=com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity (has extras) }
          frontOfTask=true task=TaskRecord{a8b11b5 #2606 A=com.tencent.android.qqdownloader.desktopwin U=0 StackId=1 sz=1}
          taskAffinity=com.tencent.android.qqdownloader.desktopwin
          realActivity=com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity
          baseDir=/data/app/com.tencent.android.qqdownloader-w3ar1tHKwTad4VdtNkckzQ==/base.apk
          dataDir=/data/user/0/com.tencent.android.qqdownloader
          stateNotNeeded=false componentSpecified=true mActivityType=assistant
          compat={420dpi} labelRes=0x7f0d006b icon=0x7f0701ad theme=0x103000f
          mLastReportedConfigurations:
           mGlobalConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=undefined} s.161}
           mOverrideConfig={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=assistant} s.161}
          CurrentConfiguration={1.0 460mcc1mnc [zh_CN,en_US,zh_HK_#Hant,ja_JP,ru_BY,ar_JO,ko_KR,ar_XB] ldltr sw411dp w411dp h659dp 420dpi nrml hdr widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1794) mAppBounds=Rect(0, 0 - 1080, 1794) mWindowingMode=fullscreen mActivityType=assistant} s.161}
          taskDescription: label="null" icon=null iconResource=0 iconFilename=null primaryColor=ff222222
           backgroundColor=ff000000
           statusBarColor=ff000000
           navigationBarColor=ff000000
          launchFailed=false launchCount=0 lastLaunchTime=-18h8m45s816ms
          haveState=true icicle=Bundle[mParcelledData.dataSize=256]
          state=STOPPED stopped=true delayedResume=false finishing=false
          keysPaused=false inHistory=true visible=false sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_NOT_SHOWN
          fullscreen=false noDisplay=false immersive=false launchMode=3
          frozenBeforeDestroy=false forceNewConfig=false
          mActivityType=assistant
          waitingVisible=false nowVisible=false lastVisibleTime=-18h8m45s579ms
          resizeMode=RESIZE_MODE_RESIZEABLE
          mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
    Running activities (most recent first):
      TaskRecord{a8b11b5 #2606 A=com.tencent.android.qqdownloader.desktopwin U=0 StackId=1 sz=1}
        Run #0: ActivityRecord{129e742 u0 com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity t2606}
    mLastPausedActivity: ActivityRecord{129e742 u0 com.tencent.android.qqdownloader/com.tencent.pangu.module.desktopwin.nonpermission.NonPermissionMainActivity t2606}
  ResumedActivity: ActivityRecord{f7f215 u0 net.csdn.csdnplus/.activity.BlogDetailActivity t2967}
  mFocusedStack=ActivityStack{91b6017 stackId=365 type=standard mode=fullscreen visible=true translucent=false, 1 tasks} mLastFocusedStack=ActivityStack{91b6017 stackId=365 type=standard mode=fullscreen visible=true translucent=false, 1 tasks}
  mCurTaskIdForUser={0=2967}
  mUserStackInFront={}
  displayId=0 stacks=4
   mHomeStack=ActivityStack{d20bb2c stackId=0 type=home mode=fullscreen visible=false translucent=true, 1 tasks}
  isHomeRecentsComponent=true  KeyguardController:
    mKeyguardShowing=false
    mAodShowing=false
    mKeyguardGoingAway=false
    mOccluded=false
    mDismissingKeyguardActivity=null
    mDismissalRequested=false
    mVisibilityTransactionDepth=0
  LockTaskController
    mLockTaskModeState=NONE
    mLockTaskModeTasks=
    mLockTaskPackages (userId:packages)=
      u0:[]
C:\Users\octop>


目录
相关文章
|
1月前
|
Linux Android开发 iOS开发
深入探索Android与iOS的多任务处理机制
在移动操作系统领域,Android和iOS各有千秋,尤其在多任务处理上展现出不同的设计理念和技术实现。本文将深入剖析两大平台在后台管理、资源分配及用户体验方面的策略差异,揭示它们如何平衡性能与电池寿命,为用户带来流畅而高效的操作体验。通过对比分析,我们不仅能够更好地理解各自系统的工作机制,还能为开发者优化应用提供参考。
|
1月前
|
算法 Linux 调度
深入探索安卓系统的多任务处理机制
【10月更文挑战第21天】 本文旨在为读者提供一个关于Android系统多任务处理机制的全面解析。我们将从Android操作系统的核心架构出发,探讨其如何管理多个应用程序的同时运行,包括进程调度、内存管理和电量优化等方面。通过深入分析,本文揭示了Android在处理多任务时所面临的挑战以及它如何通过创新的解决方案来提高用户体验和设备性能。
47 1
|
2月前
|
Android开发
Android gradle task任务检查各个module之间资源文件冲突.md
Android gradle task任务检查各个module之间资源文件冲突.md
Android gradle task任务检查各个module之间资源文件冲突.md
|
2月前
|
Android开发
Android面试之Activity启动流程简述
Android面试之Activity启动流程简述
95 6
|
2月前
|
消息中间件 Android开发 索引
Android面试高频知识点(4) 详解Activity的启动流程
Android面试高频知识点(4) 详解Activity的启动流程
33 3
|
2月前
|
缓存 前端开发 Android开发
Android实战之如何截取Activity或者Fragment的内容?
本文首发于公众号“AntDream”,介绍了如何在Android中截取Activity或Fragment的屏幕内容并保存为图片。包括截取整个Activity、特定控件或区域的方法,以及处理包含RecyclerView的复杂情况。
29 3
|
2月前
|
Android开发
Android面试之Activity启动流程简述
Android面试之Activity启动流程简述
21 0
|
3月前
|
消息中间件 Android开发 索引
Android面试高频知识点(4) 详解Activity的启动流程
讲解Activity的启动流程了,Activity的启动流程相对复杂一下,涉及到了Activity中的生命周期方法,涉及到了Android体系的CS模式,涉及到了Android中进程通讯Binder机制等等, 首先介绍一下Activity,这里引用一下Android guide中对Activity的介绍:
60 4
|
4月前
|
XML Android开发 数据格式
android中两个Activity同时设定了intent-filter的category为android.intent.category.LAUNCHER,会发生什么情况?
本文通过案例分析了在Android中当两个Activity都设置了`android.intent.category.LAUNCHER`类别时,会导致它们同时在应用启动器的"所有应用"页面显示为不同的启动入口。
124 2
android中两个Activity同时设定了intent-filter的category为android.intent.category.LAUNCHER,会发生什么情况?
|
2月前
|
Android开发 Kotlin
Android面试题之Kotlin中如何实现串行和并行任务?
本文介绍了 Kotlin 中 `async` 和 `await` 在并发编程中的应用,包括并行与串行任务的处理方法。并通过示例代码展示了如何启动并收集异步任务的结果。
36 0