On Wed, Mar 28, 2012 at 10:13 AM, Kristopher Micinski
<[email protected]> wrote:
> You can also try proxying the logger class into your own, and in your
> implementation comment out the debug functions.  The calls will simply
> be optimized away (even without JIT, Dalvik will remove these..)
>

With ADT17 is as easy as:

if (BuildConfig.DEBUG) {
   Log.d(TAG, "foobar");
}

BuildConfig.DEBUG will be set to false when exporting a signed up,
thus log statement will be removed from the release build.

-- 
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

Reply via email to