开发者

Using netbeans, how can I print to the console?

I know there are similar questions but none of them include the netbeans ide. any help woul开发者_运维知识库d be greatly appreciated :)


You can just use android.util.Log and view the output in the DDMS. Run ddms from the command line, and you'll get a view of the log that you can filter, etc.

http://developer.android.com/guide/developing/debugging/ddms.html

http://developer.android.com/reference/android/util/Log.html


there is a built-in alias in some versions : just type "sout" (+ TAB, it depends i don't remember exactly) and there you go !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜