我想用他们的android应用程序的活动堆栈查看当前任务。我应该使用什么工具?
答案 0 :(得分:1)
尝试使用adb shell dumpsys activity
查看活动堆栈。
然后,您可以搜索“Hist”以仅查看活动堆栈,例如
Hist #11: HistoryRecord{40c0c018 com.mypackage/com.mypackage.ActivityB}
Hist #10: HistoryRecord{40d27af0 com.mypackage/com.mypackage.ActivityA}
Hist #9: HistoryRecord{40d31368 com.mypackage/com.mypackage.LoginActivity}
Hist #8: HistoryRecord{40db2430 com.mypackage/com.mypackage.MainActivity}
Hist #7: HistoryRecord{40c2a978 com.mypackage/com.mypackage.LoginActivity}
Hist #6: HistoryRecord{40bf6008 com.mypackage/com.mypackage.LoginActivity}
Hist #5: HistoryRecord{40542d58 com.htc.launcher/.Launcher}