5 Jan 2013

Starting a New Project in Eclipse

You need to start Eclipse. After it’s started, you should see something that looks similar to Figure. Now you’re ready to start a new project in Eclipse with Android.


Starting a New Project in Eclipse


1. In Eclipse, choose File➪New➪Project.
The New Project/Select a Wizard dialog box opens, as shown in Figure.


Starting a New Project in Eclipse

2. From the New Project/Select a Wizard dialog box, expand the Android item by clicking the Android folder.

3. After the Android folder is expanded, click Android Project and then click the Next button.

4. In the Project Name field, type Hello Android.

5. In the Contents panel, leave the default radio button Create New Project in Workspace and the check box Use Default Location selected.

Starting a New Project in Eclipse

6. In the Build Target section, select Android 2.2.

Starting a New Project in Eclipse

7. In the Properties section, type Hello Android in the Application Name box.

8. In the Package Name box, type com.android.helloandroid. This is the name of the Java package.

9. In the Create Activity box, type MainActivity.

10. In the Min SDK Version box, type 8.

11. Click the Finish button.

You’re done! You should see Eclipse with a single project in the Package Explorer, as shown in Figure.

Starting a New Project in Eclipse

No comments:

Post a Comment