Android preprocessor macros with two goals

I hope someone can help me with this.

I have been developing for the iPhone for a long time, and I'm used to installing a preprocessor macro, so I can use #ifdefin the code to do different things for different purposes.

How do I do something similar with Android? As far as I know, Java does not support preprocessor macros. How can I have different behavior with different startup configurations in Eclipse?

+3
source share

Source: https://habr.com/ru/post/1787576/


All Articles