Regardinf #define or build flag

by Dilip Dilip » Thu, 11 Mar 2010 11:28:51 GMT

Sponsored Links
 Hi All,
  Please tell me how to declare equivalent of #define in java ? whats the
best way and best place in android to define equivalent of it.
my requirement is some thing like this ...
if the flag is enabled that part of the code should get complile else it
should not compile.

something like




can some one please explain me how to this in java.
basically i want a build flag which applies to whole android.

Thanks a lot in Advance.

THanks and Regards,


Other Threads

1. Where is the default Calendar app on Emulator?

Hi Guys,

Does anybody know where I can find the default Calendar application comes
with Android platform on emulator? I just do not see any Calendar
application around which is odd!

Thank you,


2. Does android provide SMP multicore support ?

I am not sure about this.
So you mean none of android staging drivers need to be SMP aware ?


On Thu, Aug 13, 2009 at 4:39 PM, Gani Bhagavathula <

--Pavan Savoy


3. A problem about application die unexpected.

4. Eclair feature list

5. Possible to send object via intent extras?

6. dblite file?

7. magic kalau jadi modem...?