i don't know why the Runtime.getRuntime().exec("kill -9"+PID) won't work, but with the adb.exe shell it works perfectly ...!
OnClickListener killButtonListner = new View.OnClickListener() {
public void onClick(View v) {
try {
Process ps = Runtime.getRuntime().exec("kill -9 " + PID);
Toast.makeText(getBaseContext(),"Process killed" , Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(getBaseContext(),e.getMessage().toString(),Toast.LENGTH_SHORT).show();
}
}
};
killButton.setOnClickListener(killButtonListner);
}