Tuesday, September 11, 2012

[android-developers] Re: print integer value in logcat.

 jb wrote:
Most simple approach:

int x;
System.err.println("x="+x);

Will show in LogCat.

Not normally, no, it won't.

"By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null.
http://developer.android.com/tools/debugging/debugging-log.html

-- 
Lew

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment