Do you use Eclipse for this because you have flagged the question using eclipse. If you use Eclipse, just right-click on your project, select the Android properties now. Now you can choose another build target. If you want the API package to change the checkbox from 4 to 7.
If you are not using Eclipse and want to use the Android console program, use the android program for terminals as follows.
android update project -p <path to project> -t <new target api level>
Janusz May 31 '10 at 2:16 p.m. 2010-05-31 14:16
source share