MY QUESTION: What could I use to retrieve the processName
or packageName
of a certain process given its PID
?
Since in my task manager I wanted to use the PID while utilizing the killBackgroundProcesses code to kill the processes. Problem is I need the packageName/processName to do that and it would be such a hassle to the user if I asked them to type in the processName rather than just typing its PID.
here's the image of my task manager: