adb shell dumpsys activity activities----------查看Activity组件信息
Eclipse - Hierarchy View Perspective 模式查看 当前的运行历史list
Android Activity学习笔记——Activity的启动和创建
http://www.cnblogs.com/bastard/archive/2012/04/07/2436262.html可将其分为6个过程:
1 使用代理模式启动到ActivityManagerService中执行;
2 创建ActivityRecord到mHistory记录中;
3 通过socket通信到Zgote相关类创建process;
4 通过ApplicatonThread与ActivityManagerService建立通信;
5 ActivityManagerService通知ActiveThread启动Activity的创建;
6 ActivityThread创建Activity加入到mActivities中并开始调度Activity执行;
使用adb shell dumpsys检测Android的Activity任务栈
http://blog.iderzheng.com/debug-activity-task-stack-with-adb-shell-dumpsys/
-------------
dxyoo7的专栏:http://blog.youkuaiyun.com/dxyoo7?viewmode=contents
记录一个 查看Activity 堆栈情况的命令:adb shell dumpsys activity
adb shell dumpsys activity---------------查看ActvityManagerService 所有信息
adb shell dumpsys activity activities----------查看Activity组件信息
adb shell dumpsys activity services-----------查看Service组件信息
adb shell dumpsys activity providers----------产看ContentProvider组件信息
adb shell dumpsys activity broadcasts--------查看BraodcastReceiver信息
adb shell dumpsys activity intents--------------查看Intent信息