可以使用命令

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. Reading and writing

    A text file is a sequence of characters stored on a permanent medium like a hard drive, flash memory ...

  2. 34.share_ptr智能指针共享内存,引用计数

    #include <iostream> #include <memory> #include <string> #include <vector> us ...

  3. leetcode 新题型----SQL,shell,system design

    leetcode 主要是一个针对北美的coder人群找工作的代码练习网站,我在2015年初次接触这个网站的时候,总共只有200多道题目,是一个类似acm 的a题网站.这些年变化越来越大,主要是因为找工 ...

  4. <Sicily>Funny Game

    一.题目描述 Two players, Singa and Suny, play, starting with two natural numbers. Singa, the first player ...

  5. HYSBZ1061题解

  6. [WC2011]最大XOR和路径(线性基)

    P4151 [WC2011]最大XOR和路径 题目描述 XOR(异或)是一种二元逻辑运算,其运算结果当且仅当两个输入的布尔值不相等时才为真,否则为假. XOR 运算的真值表如下( 1 表示真, 0 表 ...

  7. Unity C# 设计模式(五)建造者模式

    定义: 将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示. 组成部分: 1.Builder:给出一个抽象接口,以规范产品对象的各个组成成分的建造.这个接口规定要实现复杂对象的哪 ...

  8. oracle 10g/11g RAC 启停归档模式

     oracle 10g rac 启停归档模式    假设Oracle数据库执行在归档模式,当进行数据库维护时,可能须要暂停数据库的归档,在完毕维护后,再又一次启动归档模式. 通过下面步骤能够从归档 ...

  9. 使用Hadoop ACL 控制訪问权限

    使用Hadoop ACL 控制訪问权限 一.HDFS訪问控制 hdfs-site.xml设置启动acl <property>  <name>dfs.permissions.en ...

  10. OC07 -- 迭代器/NSNumber/NSValue/NSRange/NSSet/NSDate 及相互转换.(杂)

    //一: 迭代器 //数组 NSArray *arr=@[@"1",@"2",@"3",@"4",@"5&qu ...