Yes you should strip them out.  In Java, "if (static_flag)" is the same as
preprocessor defines for this purpose.

See for example the various logging here:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/ActivityStack.java

On Mon, Feb 14, 2011 at 4:39 PM, Hendrik Greving <[email protected]>wrote:

>  Hi question to publishing apps: Do you need to remove all Log.d calls
> before publishing? Since there is no preprocessor with #defines, it seems
> kind of dumb to put if (static_flag) around every Log.d call.
>
> --
> 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




-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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