Question

Possible Duplicate:
Why doesn't System.out.println work? (in Android)

I want to print something into console. What can I do? because System.out.println doesnt work. Some people says it works bur some of them says dosnt work. Which one right? Thanks

Was it helpful?

Solution

System.out.println() works, also Log.d("TAG", "message"); works, but you need to open the LogCat view in eclipse and not the console view.

OTHER TIPS

You should use the Log class from the android SDK. http://developer.android.com/reference/android/util/Log.html

like

final string tag = "myApp";
Log.d(tag,"hello world");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top