가능한 중복 :
Why doesn't System.out.println work? (in Android)Sytem.out.println이 Android에서 작동합니까?
내가 콘솔에 뭔가를 인쇄 할. 내가 무엇을 할 수 있을지? System.out.println이 작동하지 않기 때문입니다. 어떤 사람들은 그 중 일부는 dosnt 작업 말한다 부르면 작동합니다. 어느 쪽이 맞습니까? 감사도
가능한 중복 :
Why doesn't System.out.println work? (in Android)Sytem.out.println이 Android에서 작동합니까?
내가 콘솔에 뭔가를 인쇄 할. 내가 무엇을 할 수 있을지? System.out.println이 작동하지 않기 때문입니다. 어떤 사람들은 그 중 일부는 dosnt 작업 말한다 부르면 작동합니다. 어느 쪽이 맞습니까? 감사도
System.out.println()
작품, Log.d("TAG", "message");
작품,하지만 당신은 일식과 하지 콘솔보기에서 로그 캣보기를 열어야합니다.
android SDK의 Log 클래스를 사용해야합니다.
final string tag = "myApp";
Log.d(tag,"hello world");
같은
http://developer.android.com/reference/android/util/Log.html