查看activity task相关信息
可以使用命令
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相关信息的更多相关文章
- 【Linux】查看系统资源及相关信息
查看系统信息: uname -a # 查看Linux内核版本信息 cat /proc/version # 查看内核版本 cat /etc/issue # 查看系统版本 lsb_release -a # ...
- Android Activity task 相关属性
所谓的 task ,是指用户完成某一项任务时与之交互的一组 Activity.比如用户要向开发者汇报 bug,先打开程序主页,然后打开关于页面,再点击报告 bug 按钮,打开编辑邮件页面.当前这三个 ...
- linux 查看可执行文件动态链接库相关信息(转)
转自 http://blog.sina.com.cn/s/blog_67eb1f2f0100mgd8.html ldd <可执行文件名> 查看可执行文件链接了哪些 系统动态链 ...
- 查看服务器CPU相关信息!
# 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即 ...
- 查看树莓派系统相关信息的shell代码
一.系统信息 1.显示系统名.系统版本和cpu架构等 在命令行中输入下面的指令 uname -a 2.系统位数 在命令行中输入下面的指令 getconf LONG_BIT 如图,显示多少就是多少位 3 ...
- oracle 查看表的相关信息
1.查看当前用户的表 SELECT * FROM user_tables; 2.查看指定用户的表 SELECT * FROM all_tables WHERE owner = 'SYS';
- android-如何获得当前正在运行的activity的相关信息
http://blog.csdn.net/centralperk/article/details/7269326 ActivityManager manager = (ActivityManager) ...
- JS获取终端屏幕、浏览窗口的相关信息
查看终端屏幕相关信息,在windows系统的控制面板可以查到分辨率且可以设置,更具体的浏览器可视窗口等信息则需要借助其他工具.而在程序里需要动态获取时该怎么做呢? 琢磨的一个js方法,供大家参考.如下 ...
- Linux查看系统与内核信息(uname、file和lsb_release -a)
uname 命令 uname 命令可以用来查看系统与内核的相关信息,命令格式如下: [root@localhost ~]# uname [选项] 选项: -a:查看系统所有相关信息: -r:查看内核版 ...
随机推荐
- android取高度
Rect rect = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(rect); int top = r ...
- Spring Boot: Tuning your Undertow application for throughput--转
原文地址:https://jmnarloch.wordpress.com/2016/04/26/spring-boot-tuning-your-undertow-application-for-thr ...
- Oracle 建表
-- Create table create table STUDENT ( sno ) not null, sname ) not null, ssex ) not null, sbirthday ...
- 请教如何用 peewee 实现类似 django ORM 的这种查询效果。
本人新入坑的小白,如有不对的地方请包涵~~~! 在 django 中代码如下:模型定义: class Friends(models.Model): first_id = models.IntegerF ...
- stuff(param1, startIndex, length, param2)
1.作用 stuff(param1, startIndex, length, param2)将param1中自startIndex(SQL中都是从1开始,而非0)起,删除length个字符,然后用pa ...
- webpack入门与笔记
为什要使用WebPack 现今的很多网页其实可以看做是功能丰富的应用,它们拥有着复杂的JavaScript代码和一大堆依赖包.为了简化开发的复杂度,前端社区涌现出了很多好的实践方法 模块化,让我们可以 ...
- 记录一次Permission denied解决过程
热烈推荐:超多IT资源,尽在798资源网 朋友网站碰到一个奇怪的问题,程序所在目录无法进行上传操作. 具体细节是这样的:网站所在目录 /www/web/xiangmua 路径下,/www/web 都可 ...
- 初学javascript,写一个简单的阶乘算法当作练习
代码如下: <script> var a = prompt("请输入值"); function mul(a){ if(a==1){ return 1; } return ...
- 说说Kindle那些事
已经不记得是什么时候在哪里听过kindle这玩意的了,反正最开始买kindle还是大四上学期,貌似是2012-9-30,那时候是整个大学最闲的时候,不知道哪天闲的蛋疼一冲动就买了个kindle4黑色款 ...
- [NOIP2009] 靶形数独(搜索)
P1074 靶形数独 题目描述 小城和小华都是热爱数学的好学生,最近,他们不约而同地迷上了数独游戏,好胜的他们想用数独来一比高低.但普通的数独对他们来说都过于简单了,于是他们向 Z 博士请教,Z 博士 ...