Posts tagged trace
Android Tip – Debug or trace messages
Feb 16th
Who comes from Java feels pretty comfortable using System.out.println() to output some debug messages.
If you come from Actionscript you certainly use trace() for the same reason.
In Android, the better way to trace messages in the console is the Log class. If you have to output a string for testing purposes, try with:
Log.d(myStringDescription, myString);
For example:
Log.d("Message", "Hello, World!");
I’m sure you are going to be comfortable, once used to it!
