In my search for a #ifdef-equivalent in Java, I found this great thread that describes a way to do conditional compilation: #ifdef #ifndef in Java
What I don't understand is how this really works:
- Why is the 2nd form (System.getProperty) better than the 1st one (false/true)?
- "fast" is not one of Java's predefined properties. This probably means that I have to define it in my code somewhere. What is the best place to do this in an Android app? Is onCreate() a good place?