Hello World Program

954 views.

Creating a new Android Project.

 Select File->New->Other (or File->New->Android Project if you see Android Project from the pop-up menu)

h1
Select Android->Android Application Project,

Fill in the project details.
For the Project name field, enter HelloAndroid (or whatever project name of your choice)

h2

• For Build Target, check highest (Android AVD also highest apk)

h3
• Select the theme

h4

• Here just click just it can shown workspace location.

h5

• Here also just click next its showing app icon here

h6

  • It can show no. of activities theier you select of those (better to select blank)

h7

It is our activity name if you want to change you can change and click finish.

h8

• When we click finish project creation is done automatically it can open First activity and related Java file

h9

Build and run the application.
Right click HelloAndroid project node and select Run As->Android Application. (Or select Run from the top-level menu and then select Run.)

h10

Observe that the Android device emulator gets displayed.
The Eclipse plugin automatically creates a new run configuration for your project and then launches the Android Emulator. Depending on your environment, the Android emulator might take several minutes to boot fully, so please be patient.

h11

Slide down the arrow to the right.

h12

Observe that the result.

h13

Understanding Of Project Structure

h14

Please find the descriptions in below

 Src
This contains the .java source files for your project. By default, it includes an MainActivity.java source file having an activity class that runs when your app is launched using the app icon.
Gen
This contains the .R file, a compiler-generated file that references all the resources found in your project. You should not modify this file.
Bin
This folder contains the Android package files .apk built by the ADT during the build process and everything else needed to run an Android application.
 res/drawable-hdpi
This is a directory for drawable objects that are designed for high-density screens.
res/layout
This is a directory for files that define your app’s user interface
res/values
This is a directory for other various XML files that contain a collection of resources, such as strings and colours definitions.

AndroidManifest.xml
This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.

 

You may also like...

Leave a Reply