Most of us have heard by now of the cool features Java 8 will bring, but Android will not support it. This is because of Google using Apache Harmony for Android. This is what is keeping us (the android app developers) from improving our code with lambdas, default implementations in interfaces, switching on a String and a lot more. Surely, we will handle for some time, but what if some libraries we use in our apps start to use Java 8 features? As far as I know, this will not work (please correct me if wrong). This creates incompatibility between Standard-Java and Android-Java. It cannot be what Google intends, or at least I can't think of a reason why a company, developing a widely adopted operating system, would wan't to permanently stay with an old Java version.
Questions:
- Why do they use Apache Harmony?
- Why can't they adopt a newer version of java?
- If they don't want Oracle's Java, why can't they use a subset of OpenJDK (licensing noob here)?
- Do you know of any plans to update the used Java version?
- Do you know of any way to use Java 8 classes on current Android systems?