Search code examples
androidoutputadblogcat

display system.out.println in logcat


Does someone know how should I have my System.out.println() displayed in the logcat.I tried in the command line to browse my tools directory form C-Program Files-Android-android-sdk...tools,but when I use the ADB log-cat it says that ADB is not recognized....any command I use with adb it says unrecognised! I'm using eclipse.Thanks

UPDATE 1: Log.d(String, String)-a simple message and is not displayed neither LOGCAT or DDMS!!!! UPDATE 2: I've used ADB log-cat command after I browsed my platform-tools directory.In the cmd I have the Log.d() lines displayed but in my my Log-cat view from eclipse still nothing.Maybe because I have two emulators running and I don't know how to select the right one!!!!


Solution

  • adb is located in your SDK's platform-tools/ directory. You can also examine LogCat using DDMS or the DDMS perspective in Eclipse.