Note that there are some explanatory texts on larger screens.

plurals
  1. POHow does Advanced Task Killer actually kill a process?
    primarykey
    data
    text
    <p>The question above basically explains my question. How does Advanced Task Killer kill an application ?</p> <p>I have tried the method mentioned in the seconds answer to <a href="https://stackoverflow.com/questions/8814696/how-to-kill-currently-running-task-in-android">this</a> question. Which is using <code>ActivityManager.killBackgroundProcesses.</code></p> <pre><code>for(RunningAppProcessInfo runningProcess : runningProcesses){ for(ApplicationInfo nonCompliantApp : nonCompliantApps){ if(runningProcess.pkgList != null) for(String runningAppPackageName : runningProcess.pkgList){ // if(runningProcess.processName.startsWith("gameapps.avatar.")){ //// FileManager.writeToLogFile(SystemApplicationManager.class, "run", LogMessageType.DEBUG, "Game Apps: " + runningProcess.processName + " pkg: " + runningProcess.pkgList.length + " - " + runningProcess.pkgList[0]); // } if(runningAppPackageName.equals(nonCompliantApp.packageName)){ ActivityManager amgr = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); ShellCommandManager.executeShellCommand("kill " + runningProcess.pid); amgr.killBackgroundProcesses(nonCompliantApp.packageName); FileManager.writeToLogFile(SystemApplicationManager.class, "run", LogMessageType.DEBUG, "Process found and killed: " + nonCompliantApp.packageName); } if(!keepRunning)break; } } </code></pre> <p>The problem is, after executing the above code, I check under settings -> apps -> running , only to find that the same application is still running. The device I am testing this on is an HTC One X running Android ICS.</p> <p>What am I doing wrong ? Some help or clarification would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload