Hello World Application
Install a Platform
To run the Hello World application, you need to install at least one Android platform in your SDK environment. If you have not already performed this step, you need to do it now.
To install a platform in Eclipse:
1. In the Android SDK and AVD Manager, choose Available Packages in the left panel.
2. Click the repository site checkbox to display the components available for installation.
3. Select at least one platform to install, and click Install Selected. If you aren't sure which platform to install, use the latest version.
Create an AVD
In this tutorial, you will run your application in the Android Emulator. Before you can launch the emulator, you must create an Android Virtual Device (AVD). An AVD defines the system image and device settings used by the emulator.
To create an AVD:
1. In Eclipse, choose Window > Android SDK and AVD Manager.
2. Select Virtual Devices in the left panel.
3. Click New. The Create New AVD dialog appears.
4. Type the name of the AVD, such as "my_avd".
5. Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator.
You can ignore the rest of the fields for now.
6. Click Create AVD.
Create a New Android Project :
After you've created an AVD, the next step is to start a new Android project in Eclipse.
1. From Eclipse, select File > New > Project.
If the ADT Plugin for Eclipse has been successfully installed, the resulting dialog should have a folder labeled "Android" which should contain "Android Project". (After you create one or more Android projects, an entry for "Android XML File" will also be available.)
2. Select "Android Project" and click Next.
Install a Platform
To run the Hello World application, you need to install at least one Android platform in your SDK environment. If you have not already performed this step, you need to do it now.
To install a platform in Eclipse:
1. In the Android SDK and AVD Manager, choose Available Packages in the left panel.
2. Click the repository site checkbox to display the components available for installation.
3. Select at least one platform to install, and click Install Selected. If you aren't sure which platform to install, use the latest version.
Create an AVD
In this tutorial, you will run your application in the Android Emulator. Before you can launch the emulator, you must create an Android Virtual Device (AVD). An AVD defines the system image and device settings used by the emulator.
To create an AVD:
1. In Eclipse, choose Window > Android SDK and AVD Manager.
2. Select Virtual Devices in the left panel.
3. Click New. The Create New AVD dialog appears.
4. Type the name of the AVD, such as "my_avd".
5. Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator.
You can ignore the rest of the fields for now.
6. Click Create AVD.
Create a New Android Project :
After you've created an AVD, the next step is to start a new Android project in Eclipse.
1. From Eclipse, select File > New > Project.
If the ADT Plugin for Eclipse has been successfully installed, the resulting dialog should have a folder labeled "Android" which should contain "Android Project". (After you create one or more Android projects, an entry for "Android XML File" will also be available.)
2. Select "Android Project" and click Next.
No comments:
Post a Comment