process p = Runtime.getRuntime().exec() is running even when I uninstall the application
<p>I have observed very strange behavior in my application.</p>

<p>My application is having one Service and one Activity , In my Service part of my application I need to execute LogCat command which will dump its output to the text file which is stored in SD card of the device. </p>

<p>To run the LogCat command in my Service I have used the below code:</p>

<pre><code>   Process p = Runtime.getRuntime().exec("logcat -v time -f /mnt/sdcard/log.txt &amp;");
</code></pre>

<p>The above code is running in background and so far I have achieved what I need.</p>

<p>But the above command  is even running after I uninstall my application from the device.
My log.txt file in the SD card is keep on increasing.</p>

<p>I have checked the "Applications -> ManageApplications -> RunningServices" but there's no my Service is running.</p>

<p>Please help me how to stop my background process when I uninstalled my application.</p>

<p>This issue is very strange but It's happening.</p>

<p>These symptoms gone away only I rebooted the device. </p>
