Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preprocessing with Android

I'd like to make some changes in my code according to some Marketing requires. I thing that the best solution is using preprocessing, like in J2ME. How can I do it? Is there any tool for this task? Thanks, Eyal.

like image 532
eyal Avatar asked Apr 22 '26 20:04

eyal


2 Answers

You can find more details under the below link:

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

Basically it is said that Android doesn't support preprocessing because Java doesn't support it.

However there are ways to imitate the behaviour of preprocessors using System Properties in Java. And there is already a discussion on it:

#ifdef #ifndef in Java

like image 72
hnviet Avatar answered Apr 25 '26 12:04

hnviet


There are number of preprocessors for Java, I use my own https://github.com/raydac/java-comment-preprocessor it supports Maven, ANT and Gradle The Wiki project page where described the process can be found here

like image 38
Igor Maznitsa Avatar answered Apr 25 '26 10:04

Igor Maznitsa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!