Perhaps you are still saying that you are using the 2.3.3 library as you have targetSdkit installed in 2.3.3.
With a minimum SDK of over 2.2 (8) you will lose 27.1% of the audience
With a minimum SDK with over 2.1 (7) you will lose 6.2%
With a minimum SDK of more than 1.6 (6) you will lose 0.7%
so this is for you if you do not want to aim at 2.3 (9) .
(I personally would recommend having your minSdk as 2.2 (8) and targeting 3.0 (11))
Like for String.isEmpty ()
if("".equals(String)){
// is Empty
}
or
if(!"".equals(String) && String != null){
// is Not Empty
}
For a complete implementation of isEmpty, you need to remember that your line may be empty or full of spaces (which is technically empty):
if(String != null && "".equals(String.trim())){
// is Empty
}
null trim() NullPointerException
Ref: