I am developing an app related to ActivityManager.
I want to get information about all running activityies inside the system by using
ActivityManager.
How can this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use ActivityManger.getRunningTasks(Integer.MAX_VALUE)
Further use PackageManager to get the detail information about the task .
Finally iterate through the list of RunningTaskInfo and get the info of each task :
Need to add the permission in manifest file also
Hope this will help you.