public IAndroidTarget[] getTargets() {
if (mTargets == null) {
File sdkHome = getSdkHome();
if (sdkHome != null) {
StdLogger log = new StdLogger(Level.WARNING);
SdkManager manager = SdkManager.createManager(sdkHome.getPath(), log);
if (manager != null) {
mTargets = manager.getTargets();
} else {
mTargets = new IAndroidTarget[0];
}
} else {
mTargets = new IAndroidTarget[0];