I want to kill all tasks that run in android like task killer... What I have done until now is:
ActivityManager manager = (ActivityManager) this.getSystemSe
You can try this to kill your task or app:
ActivityManager am = (ActivityManager) ctx .getSystemService(ctx.ACTIVITY_SERVICE); am.killBackgroundProcesses(packageName);
this works for 2.2 and up.