In my android application I can\'t use String.isEmpty() function which is situated in JDK 1.6. Android 2.1 lib doesn\'t have this function in java.lang
You have to upgrade android API to level 9, or use String.trim().length()==0 or String.equals("") instead, it should work for your android API level and your JDK version.