1

I am using this code:

try 
{ 
    process = Runtime.getRuntime().exec("su");
    os = new DataOutputStream(process.getOutputStream());
    os.writeBytes("getevent /dev/input/event6 >/sdcard/test.txt \n ");
    os.flush();
} 
catch (Exception e)
{
    LogWrite.d(tag, "error=="+e.toString());
}

i want to stop this process or stop writing to test.txt according to my need. How can i achieve this?

Thanks and Regards

Aman Arora BB
  • 190
  • 1
  • 12
  • possible duplicate of [Killing a process using Java](http://stackoverflow.com/questions/6356340/killing-a-process-using-java) – Alex Cohn Dec 13 '13 at 23:47

0 Answers0