I'm trying to redirect the log of my app to the sdcard file. But i failed to do so. I'm trying something like this.
String cmd= "logcat -v time ActivityManager:W myapp:D *:* >\""+file.getAbsolutePath()+"\"";
Runtime.getRuntime().exec(cmd);
I tried the -f option also but it is not working either.