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 <fourhend...@gmail.com>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 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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 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