0
我想知道如何獲取在後臺運行的活動快照,就像我們在最新的任務管理器中運行的那樣。對此的任何輸入都非常有幫助。以編程方式獲取在android中運行的任務快照
我想知道如何獲取在後臺運行的活動快照,就像我們在最新的任務管理器中運行的那樣。對此的任何輸入都非常有幫助。以編程方式獲取在android中運行的任務快照
你想要的方法是ActivityManager
類中的getRunningTasks
。
閱讀關於它here。
從上面的鏈接:
public List<ActivityManager.RunningTaskInfo> getRunningTasks(int maxNum)
Return a list of the tasks that are currently running, with the most
recent being first and older ones after in order
我要像你回家時,在按鈕ICS長按該活動的形象。(ICS的的任務管理器類似) – Arun 2012-08-18 09:09:36