Android preprocessing

I would like to make some changes to my code in accordance with some marketing requirements. I believe the best solution uses preprocessing, as in J2ME. How should I do it? Is there any tool for this task? Thanks, Eyal.

+3
source share
3 answers

You can find more information at the following link:

http://groups.google.com/group/android-developers/browse_thread/thread/0daee1d93d1f21b3?pli=1

It is basically said that Android does not support preprocessing because Java does not support it.

However, there are ways to simulate preprocessor behavior using System Properties in Java. And this is already under discussion:

#ifdef #ifndef Java

+5
+1

Although it was originally developed for J2ME, the preprocessor itself is completely general. (I wrote this about 6 years ago and it ended in Eclipse MTJ). http://antenna.sourceforge.net/wtkpreprocess.php

0
source

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


All Articles