How can I get the equivalent of a printStackTrace in android? I know I can log an error, by passing in a tag name and a String to the logging method, but that just gives me a nullpointerexception. If I call e.printStackTrace(), where is this data printed to?
Share
If you are using eclipse make sure you have
LogCatwindow opended. You can find it underWindow-> Show View-> Other -> Under Android -> LogCat
updated:2014 July
OR if you are using Android Studio you can find it under
Window menu -> Show view -> Logcat
LogCatis like a console in normal JAVA. Youre.printstacktrace()would appear in LogCat as well.