可以使用命令

adb shell dumpsys activity

查看的结果如下

ACTIVITY MANAGER PENDING INTENTS (dumpsys activity intents)
* PendingIntentRecord{42deee60 com.android.systemui startActivity}
* PendingIntentRecord{42eb97e0 com.miui.systemAdSolution broadcastIntent}
* PendingIntentRecord{42f449b0 com.tencent.mobileqq broadcastIntent}
* PendingIntentRecord{42dd5978 com.miui.securitycenter startService}
* PendingIntentRecord{427d0fa8 android broadcastIntent}
* PendingIntentRecord{42e21218 com.amazon.kindle startActivity}
* PendingIntentRecord{42e0d6d8 com.cleanmaster.sdk broadcastIntent}
* PendingIntentRecord{427796e0 com.tencent.mobileqq broadcastIntent}
* PendingIntentRecord{42dc5660 com.miui.securitycenter startService}
* PendingIntentRecord{429d5350 com.xiaomi.xmsf startService}
* PendingIntentRecord{42cf74f0 android startActivity}
........ ACTIVITY MANAGER BROADCAST STATE (dumpsys activity broadcasts)
Historical broadcasts [foreground]:
#: BroadcastRecord{430d3e20 u- android.intent.action.SCREEN_OFF}
act=android.intent.action.SCREEN_OFF flg=0x50000010
#: BroadcastRecord{433c4ad8 u- android.intent.action.SCREEN_ON}
act=android.intent.action.SCREEN_ON flg=0x50000010
#: BroadcastRecord{4344fa98 u- android.intent.action.TIME_TICK}
act=android.intent.action.TIME_TICK flg=0x50000014 (has extras)
extras: Bundle[{android.intent.extra.ALARM_COUNT=}]
.......... ACTIVITY MANAGER CONTENT PROVIDERS (dumpsys activity providers)
Published single-user content providers (by class):
* ContentProviderRecord{42528fb0 u0 com.android.systemui/.statusbar.NotificationProvider}
proc=ProcessRecord{42514e70 :com.android.systemui/}
singleton=true
authority=keyguard.notification
* ContentProviderRecord{42d01b00 u0 com.android.phone/.IccProvider}
proc=ProcessRecord{42cc9f18 :com.android.phone/}
singleton=true
authority=icc
* ContentProviderRecord{42bc6ed0 u0 com.android.providers.settings/.SettingsProvider}
proc=ProcessRecord{ :system/}
singleton=true
authority=settings
..........
ACTIVITY MANAGER SERVICES (dumpsys activity services)
User active services:
* ServiceRecord{42dbc130 u0 com.android.mms/.transaction.SmsReportService}
app=ProcessRecord{425256b0 :com.android.mms/u0a18}
created=-17h0m47s339ms started=true connections=
* ServiceRecord{42f2bc38 u0 com.android.settings/.wifi.MiuiWifiService}
app=ProcessRecord{42d3bc58 :com.android.settings/}
created=-17h0m39s273ms started=true connections=
* ServiceRecord{42d84600 u0 com.qualcomm.location/com.qualcomm.lib.location.osagent.OsAgent}
app=ProcessRecord{ :system/}
..........
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
Stack #:
Task id #
TaskRecord{42d39920 # A=com.miui.home U= sz=}
Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10e00000 cmp=com.miui.home/.launcher.Launcher }
Hist #: ActivityRecord{42cf02f0 u0 com.miui.home/.launcher.Launcher t1}
Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10800000 cmp=com.miui.home/.launcher.Launcher }
ProcessRecord{ :com.miui.home/u0a16} Running activities (most recent first):
TaskRecord{42d39920 # A=com.miui.home U= sz=}
Run #: ActivityRecord{42cf02f0 u0 com.miui.home/.launcher.Launcher t1}
..........

里面包含的是关于android 四大组件的相关信息。

如果我们想查询里面单独的一项,只需要执行每一项后面提示的名利就好了。如activity堆栈信息,我们就可以使用

ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)

adb shell dumpsys activity activities

查看activity task相关信息的更多相关文章

  1. 【Linux】查看系统资源及相关信息

    查看系统信息: uname -a # 查看Linux内核版本信息 cat /proc/version # 查看内核版本 cat /etc/issue # 查看系统版本 lsb_release -a # ...

  2. Android Activity task 相关属性

    所谓的 task ,是指用户完成某一项任务时与之交互的一组 Activity.比如用户要向开发者汇报 bug,先打开程序主页,然后打开关于页面,再点击报告 bug 按钮,打开编辑邮件页面.当前这三个 ...

  3. linux 查看可执行文件动态链接库相关信息(转)

    转自 http://blog.sina.com.cn/s/blog_67eb1f2f0100mgd8.html ldd <可执行文件名>       查看可执行文件链接了哪些  系统动态链 ...

  4. 查看服务器CPU相关信息!

    # 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即 ...

  5. 查看树莓派系统相关信息的shell代码

    一.系统信息 1.显示系统名.系统版本和cpu架构等 在命令行中输入下面的指令 uname -a 2.系统位数 在命令行中输入下面的指令 getconf LONG_BIT 如图,显示多少就是多少位 3 ...

  6. oracle 查看表的相关信息

    1.查看当前用户的表 SELECT * FROM user_tables; 2.查看指定用户的表 SELECT * FROM all_tables WHERE owner = 'SYS';

  7. android-如何获得当前正在运行的activity的相关信息

    http://blog.csdn.net/centralperk/article/details/7269326 ActivityManager manager = (ActivityManager) ...

  8. JS获取终端屏幕、浏览窗口的相关信息

    查看终端屏幕相关信息,在windows系统的控制面板可以查到分辨率且可以设置,更具体的浏览器可视窗口等信息则需要借助其他工具.而在程序里需要动态获取时该怎么做呢? 琢磨的一个js方法,供大家参考.如下 ...

  9. Linux查看系统与内核信息(uname、file和lsb_release -a)

    uname 命令 uname 命令可以用来查看系统与内核的相关信息,命令格式如下: [root@localhost ~]# uname [选项] 选项: -a:查看系统所有相关信息: -r:查看内核版 ...

随机推荐

  1. js数组的操作 Full

    js数组的操作 用 js有很久了,但都没有深究过js的数组形式.偶尔用用也就是简单的string.split(char).这段时间做的一个项目,用到数组的地方很多,自以为js高手的自己居然无从下手,一 ...

  2. UI Framework-1: views Windowing

    views Windowing views provides support for creating dialog boxes and other kinds of windows through ...

  3. Linux-TCP/IP, IPv4地址类别摘要

    TCP/IP分层:                 application layer                 transport layer                 internet ...

  4. tf.cast(ndarray,dtype)

    转化为指定的类型,一般是将bool类型转化为其他的数据类型,例如:tf.float32

  5. last-child到底怎么用

    今天工作时候遇到的坑, 看来还是css基础不够扎实,特此记录一下, <div> <p>1</p> <p>2</p> <p>3&l ...

  6. POJ 3630 Phone List(字典树)

    题意 题意:t个case(1<=t<=40),给你n个电话号码(电话号码长度<10)(1 ≤ n ≤ 10000),如果有电话号码是另一个电话号码的前缀,则称这个通讯录是不相容的,判 ...

  7. python IO编程-序列化

    原文链接:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/00143192607 ...

  8. 安卓Gallery配合ImageSwitcher不显示图片

    Gallary装的是缩略图(thumb),ImageSwitcher装的是大图. 不显示图片的一个可能原因是gallery没设置代理器,另一个原因是没使用相对布局. GalleryActivity.j ...

  9. spring定时器中如何获取servletcontext

    spring定时器中如何获取servletcontext 学习了:https://zhidao.baidu.com/question/406212574.html @Scheduled(cron = ...

  10. 【v2.x OGE教程 17】事务处理

    游戏代码中常常有些逻辑须要处理.因此OGE引擎加入了一个IUpdateHandler的类. IUpdateHandler类是OGE引擎中使用频率很之高的组件之中的一个,其本身是一个接口.内部有onUp ...