You can use Log.d for printing debug statements to the LogCat and
Log.e for error statements.
On 15-May-09, at 1:25 PM, Francesco Pace wrote:
> Hi Mariano, thanks for your time.
> Example :
>
> ///// CODE APPLICATION
> System.out.println("Hello");
> foo1(); // Simple function
> System.out.println("World");
> foo2(); // Simple function
> System.out.println("Today");
> System.out.println("Yesterday");
>
> I know that I can't use "System.out.println" on Android.
>
> ///// DISPLAY CONSOLE (NO WINDOW COMMAND LINE)
> - Hello
> - World (after foo1())
> - Today (after foo2())
> - Yesterday
>
> "adb -e logcat" display the output of the currently running emulator
> on window command line, I need to show "logs" on interface.
> Can you help me? Thanks for all.
>
> 2009/5/15 Mariano Kamp <[email protected]>
> Not sure if I understand you correctly.
>
> You can run "adb -e logcat" on the command line to display the
> output of the currently running emulator. Is that what are looking
> for?
>
>
> On Fri, May 15, 2009 at 9:32 AM, Francesco Pace <[email protected]>
> wrote:
> Hi developers,
> I need a help. I need to display all Logcats Log on console of my
> emulator, as do it the simple program "Hello World".
> Can you help me?
>
>
>
>
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---