Programming/Non programming

Sunday, February 21, 2010

Android: How do we see logs in Eclipse?

Android:
How do we see logs in Eclipse?

1. We need to add Log.d or Log.v etc to the source code to print the logs.

For ex:
Log.d("Portfolio:", "getParsedOutput:" + getParsedOutput); // here getParsedOutput is a string.

2. Go to Eclipse "Window (menu)->Show View->choose Other -> Android -> LogCat.

You can see the LogCat added in your project now in the bottom.
Otherwise Choose DDMS, where-in you choose Simulator/Device where you can see the logs printed.


Thank you for followers!

Cheers,

M.P.Prabakar
Senior Systems Analyst.

Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..

No comments:

Post a Comment