Replace java.lang.String.isEmpty() to support Java 1.5 (and Android 2.2 and
below).
Running on Android 2.2 using the JAR file causes a RunTimeException in MicrosoftTranslatorAPI.java because java.lang.String.isEmpty() is part of Java 1.6, and not available on Android prior to version 2.3. Using length() instead allows the API to run without errors on Android 2.2. Android 2.2 is still very commonly used, so the change is worthwhile.
Replace java.lang.String.isEmpty() to support Java 1.5 (and Android 2.2 and below).
Running on Android 2.2 using the JAR file causes a RunTimeException in MicrosoftTranslatorAPI.java because java.lang.String.isEmpty() is part of Java 1.6, and not available on Android prior to version 2.3. Using length() instead allows the API to run without errors on Android 2.2. Android 2.2 is still very commonly used, so the change is worthwhile.