It would be good for Android phones to have a rolling log file that
doubles as a console.
That way, when there are problems with applications in production, the
user can simply push the logs to a server - just as Microsoft does
now.
It is weird for developers to not have familiar tools like
e.printstacktrace() or System.out.println().
Instead we have something rather inconvenient to use:

http://code.google.com/android/reference/adb.html

"By default, the Android system sends stdout and stderr (System.out
and System.err) output to /dev/null. In processes that run the Dalvik
VM, you can have the system write a copy of the output to the log
file. In this case, the system writes the messages to the log using
the log tags stdout and stderr, both with priority I.

To route the output in this way, you stop a running emulator/device
instance and then use the shell command setprop to enable the
redirection of output. Here's how you do it:

$ adb shell stop
$ adb shell setprop log.redirect-stdio true
$ adb shell start"

thanks,
Anil
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to