I have gone through many tutorials, but I haven't found how to get the error logs.
I found one link: http://www.helloandroid.com/tutorials/reading-logs-programatically
and gone through it. I want only error logs, I don't know which command must write to show error logs. My requirement is to send the logs through email, I don't want any adb command. I want the command to write in java to read the logs of error/debug/info.
Example: to dump a file, they have written code like
Process process = Runtime.getRuntime().exec("logcat -d");
To print only error logs, what command should I write?
Gone through Andorid Developers Blog: http://developer.android.com/tools/debugging/debugging-log.html