How can I get all the applications that are currently running on android? -


i want running app on android device. maybe, need use packagemanager? have tried used packagemanager, did not succeed, maybe, have better decision?

using below code can running application list

activitymanager = (activitymanager) getsystemservice(context.activity_service); list<activitymanager.runningappprocessinfo> runningappprocessinfo = am.getrunningappprocesses(); 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -