On May 18, 10:35 am, Raphael <[email protected]> wrote:
> On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito <[email protected]>
> wrote:
> > Here's a real beginner question:
> > Im using Eclipse IDE with the android SDK. Where does the
> > 'system.out.println' printing goes? to the console? 'cause it is not
> > going...
>
> It goes nowhere. Don't use it. Use android.utils.Log for all your
> logging needs, which will be available in logcat.
Actually, System.out and System.err should get redirected to the log
file.
See frameworks/base/core/java/com/android/internal/os/
RuntimeInit.java, zygoteInit(), where it does:
System.setOut(new AndroidPrintStream(Log.INFO, "System.out"));
System.setErr(new AndroidPrintStream(Log.WARN, "System.err"));
The stdin/stdout/stderr file descriptors are redirected to /dev/null
during app framework startup, so a printf() from native code won't do
anything.
The android.util.Log calls are preferred, since you can tag the
messages from your app and filter them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---