Android: how to integrate eclipse with java 1.7

Step2, upgrade your eclipse to lastest version if possible.
Only Indigo Sr2 or above will support Java 1.7. If you have no idea which version your eclipse is, please download the latest version.http://www.eclipse.org/downloads/

After upgrading, open eclipse, go to Windows->Preferences->Java->Compiler->set compiler compliance level =>1.7.
This requires all your android projects with Android 4.4.2.

If you don't want to work with Android 4.4.2 for some projects, please go to Project Properties->Java Compiler->Enable project specific settings.