How to find a background running process

I am trying to create an app that will check if a particular process is running in the background and if needed will kill the process.

Can someone please help me with finding the list of a background process running on my system (phone)

Hi @Shrawan_Singh Welcome
I am little confused between background app and background service/process.
Can you solve my doubt?

1 Like

Here are a few references that might bring some clarity:

Videos

Working with WorkManager, from the 2018 Android Dev Summit
WorkManager: Beyond the basics, from the 2019 Android Dev Summit

3 Likes

Use extension with "LINUX" command

ps
ps -A
service list
top
kill (to kill process)
...

1 Like

You probably mean this:

2 Likes