Can you explain how I would proxy it? 

On Tuesday, March 27, 2012 9:22:07 PM UTC-4, Kristopher Micinski wrote:
>
> Right, but my point is that you can even do this without the ifs, as
> you probably don't want to put them all over your code, and a null
> method body will get optimized away.
>
> kris
>
> On Tue, Mar 27, 2012 at 9:19 PM, Nikolay Elenkov
> <> wrote:
> > On Wed, Mar 28, 2012 at 10:13 AM, Kristopher Micinski
> > <> 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