Is Java 7 ready for Developing Software for Smart Phones and Tablets
posted 2 years ago
The support for Micro edition by Java was phenomenal. I would like to know what Java 7 has in store for Android and Java enabled phones. Initially when I threw this question on this forum I was told it was still in the works. So what's in the Java 7 box for us in this regards.
I don't work with Java ME so I can't really comment on what Java 7 has in store for Java-enabled phones. However, I would speculate that language features such as try-with-resources will benefit developers by removing boilerplate (e.g., having to provide code that explicitly closes streams and other closeables).
Regarding Android, the situation is somewhat confusing. Officially (and I mean working directly with an unmodified Android SDK from Google), you cannot take advantage of Java 7-specific APIs or language features -- the last time I checked, Google's SDK doesn't support language features newer than Java 5 and APIs newer than Java 6. Unofficially, you can do so (in a limited way), and I show how to do this in my two-part "Overcoming Android's Problems with JDK 7" series for InformIT. To learn how to support Java 7 language features such as try-with-resources, check out Part 2 at http://www.informit.com/articles/article.aspx?p=1966024.