0

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

Community
  • 1
  • 1
barzos
  • 837
  • 3
  • 16
  • 25

2 Answers2

1

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.

WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
1

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");
C0br4
  • 11
  • 1