• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to enable logs

Like in your own code?

To do that, in your program, you import android.util.Log and then call 'Log.x', where x can be i (info), e (error), d (debug), etc. Generally, the arguments are then a debug tag (to be able to identify it amongst the other logs) and the actual log message.

My example:
final string DEBUG_TAG = "MyAwesomeApp"
Log.i(DEBUG_TAG, "This is my message");
 
Oh, and then to seem them, use the DDMS tool. I've only used it through the DDMS view in Eclipse, but I am sure that there is a standalone log reader among the Android SDK tooks.
 
Back
Top Bottom