A good log app is called (strangely enough) "Sendlog"  - it's fairly
lightweight and just asks the user to enter an e-mail address. Select
"detailed" logs for the best result.

As for adding logging statements all over the place. That's a very
good idea with one caveat. Add a logging variable like this to the top
of your source:

static final boolean DOLOG = false ;

Then preface all your logging statements with a test:

if ( DOLOG ) Log.v("Foo","Logging message") ;

When you create your beta, set DOLOG = true. That will include the
logging messages. When you create your production version, set it to
false. The "compiler" will exclude all those logging statements
because they will never execute. The compiler is smart enough to know
this, so your production code will be streamlined without physically
removing (yourself) the logging statements from the code. I believe
this is the preferred method of coding your logging statements.

-John Coryat

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to