Is there any way to get package names from application name ??
for e.g if app name is location , can I get its package name com.android.location, so that I can kill it using
am.killBackgroundProcesses(package name)
or someone knows any function directly to kill using app name. any other suggestions ??
This will get all running process and go through all of them to find the one with the specified name and kill the process.
To use this method, you will need the following permissions: