Is it possible to get the Foreground activity using Usage Stats?

前端 未结 0 1725
日久生厌
日久生厌 2020-12-07 19:42

I found this method to get the foreground activity:

public String getRecentActivity(Context context) { //I cut out the pre API 22 part of the method

    if (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题