Skip to content Skip to sidebar Skip to footer

Monitor Currently Running Application

I am encountering a problem that i can't not solve for the moment. The purpose of the code is to monitor which applications are running at current moment. I used the following code

Solution 1:

replace the "Activity" in getSystemService's parameters with "Context":

ActivityManagermanager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);

I tested it and works fine for me!

Post a Comment for "Monitor Currently Running Application"