i running logcat -v time -f /dir/to/file.log
on embedded android device. running , log piped file file.log
.
however, unable terminate logcat's piped output file. aware of ctrl c, looking string based command can interpreted via android's runtime.getruntime().exec()
method.
my aim terminate stream of data written file.log
. no other condition applies.
did consider looking @ process's documentation? figure destroy()
should work you.
ref
https://developer.android.com/reference/java/lang/process.html
Comments
Post a Comment