Explore

Loading

Thursday, February 9, 2012

Developing Android Projects

Open Eclipse and follow these steps to create a new project:

1.
on the Eclipse toolbar.

The first time you try to create an Android Project in Eclipse, you might need to
choose File, New, Project… and then select the Android, Android Project. After you
have done this once, it appears in the Eclipse project types and you can use the
method described in Step 1.

2.

3.
select the Create New Project in Workspace radio button.

4.
select the version of Android most appropriate for the devices used by your
target audience and the needs of your application. If you are planning to use
the Google add-ons (for example, Google Maps), be sure to choose the Google
APIs version for your target platform. For this example, the Android 2.3 (API
level 9) build target is sufficient.
Select a build target for your application. For most applications, you want to

5.
call the application
Specify an application name. This name is what users will see. In this case,Droid #1.

6.
for Java. Because all code in this book falls under the
Specify a package name, following standard package namespace conventionscom.androidbook.*
namespace, use the package name
com.androidbook.droid1.

7.
default launch
Check the Create Activity check box, which instructs the wizard to create aActivity class for the application. Call your activityDroidActivity

8.
the build target by default (for example, Android 2.3 is API level 9). If you want to
support older versions of the Android SDK, you need to change this value. For example,
to support devices with Android 1.6, set the Min SDK Version to API Level 4.
Confirm that the Min SDK Version field is correct. This field is set to the API level of

9.
Click the Next button.

10.
with your Android application. For this example, a test project is unnecessary.
However, you can always add a test project later by clicking the Android Test
Project creator icon, which is to the right of the Android Project Wizard icon
( ) on the Eclipse toolbar.

The Android project wizard enables you to create a test project in conjunction11. Click the Finish button.
.
Choose a location for the project source code. Because this is a new project,
Choose a project name. In this case, name the project Droid1.
Choose File, New, Android Project or click the Android Project creator icon

No comments:

Post a Comment