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. emulator of m5-rc15 problem

it keep typing the "=" without quote in the text field in front of
contacts as emulator start
i have check the keyboad also but it still typing the sign ============

2. Failed to open database file

Hi All,
I know that it is a pretty old topic, but I am facing the same problem
" unable to open database file " and I don't have img file in Settings
\me\Local Settings\Application Data\, have you solved the problem? I
use version m5 under XP.

On 22 Feb., 19:58, "Jose Mara Gonzlez" <[EMAIL PROTECTED]>


3. Launch Aborted

4. XferMode

5. Confusing Problem about VideoView

6. Imagine the possibilities of Android + Carnegie Mellon's Alice

7. extending