Android Development Learning-first Android Program (meaning of various parameters), first android
Next we will build the first Android program.
Open Eclipse and start the following steps:
1. File ==> New ==> the following window appears for the Android Application Project:
2. Fill in the form that appears:
Application Name: the Name that the Application displays to the user. In this project, use "My First App"
Project Name: the Name of the Project directory that is visible in Eclipse.
Package Name: The namespace of the application Package (following the same rules in Java ). The package name must be unique. We recommend that you use the name starting with the Reverse Domain Name of the Organization. In this project, you can use
"Com. example. myfirstapp ".
Minimum Required SDK: the Minimum version of the Android SDK supported by the application. To support as many devices as possible, you should set the minimum version that can provide the application with its core feature set. If a feature is supported only in the new version and does not conflict with the core feature, it can be provided only in the new version.
Target SDK: indicates the highest version you have tested. With the new version of Android, you should test and update the application in the new version, to comply with the latest API and take advantage of the new platform features.
Compile With: indicates the platform version of the application during compilation. By default, the SDK is set to the latest version.
Theme: Specifies the Android UI style applicable to the application. You can ignore it first.
Click Next.
3. In the following dialog box, retain the default options and click Next.
4. This dialog box creates a startup icon for your application. You can customize icons in several different ways. The tool will generate appropriate icons for all the screens at resolution. However
Before use, make sure that the icons comply with the specifications of the Iconography design specifications.
Click Next.
5. Now you can select a template activity to create a program. For this project, select "BlankActivity" and click "Next.
6. All defaults, and click Finish.
In this way, the first application is created, so many folders do not matter what you mean, and I will talk about it later.
Run our first program first:
To create an AVD, follow these steps:
1. run Android Virtual Device Manager
2. Click New.
3. add details
4. create AVD
5. SlaveAndroid Virtual Device ManagerSelect the new AVD and click start.
6. Start the simulator
Start from eclipse
Select a project, right-click Run as ==> Android Application
Run