On Thu, Dec 15, 2011 at 8:39 AM, hhenne <hhe...@gmail.com> wrote: > In java you don't have macros (#ifdef) = compiler instructions. In > stead you have to make a plain java function, which will do the same - > the only difference is, the macro will not generate a call instruction > - so it's more efficient. > Personally I use it a lot. It is nice, to be able to switch off > technical or business features by just changing a flag from true to > false. You can use it for having more versions for different > environments, for searching for nasty bugs, or for handling different > versions - alternative to branching. >
Do you means something like this: http://groups.google.com/group/android-developers/msg/08d80619492a2edf?hl=en ? If not, can you show us a piece of code? or a link to a full code will be wonderful. > > Hardy Henneberg > http://www.maxikeys.com > > On Dec 15, 4:10 am, topazmax <mgg7...@gmail.com> wrote: > > is there a way to enclose conditional code for different builds - for > > example: > > > > in VISUAL C++ i use 'ifdef DEBUG' for code that is only included in > > the debug build and i can be sure that any testing code does not end > > up in the release build - inflating its size. > > > > i searched the java/android docs & blogs without success so where do i > > find information on this sort of thing? > > and how do you pros do it? > > > > any help would be greatly appreciated... thanks in advance > > -- > 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 > -- Adorilson Bezerra <http://twitter.com/ensl_oficial> Atenção: Este e-mail pode conter anexos no formato ODF (Open Document Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os anexos em outro formato, você pode instalar gratuita e livremente o BrOffice ( http://www.broffice.org) ou o seguinte Plugin para Microsoft Office ( http://www.sun.com/software/star/odf_plugin/get.jsp). -- 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