Quantcast
Viewing all articles
Browse latest Browse all 21

Building Your First Android Application

Before starting,you should have sound knowledge and installed the following:

1) JDK 6

2) Eclipse

3) Sdk manger

Now in this article you will learn how to build your first app on android. we start from very basic app “Hello World” and learn how to build new project in eclipse. Here are the following steps through which you can create your first app in android.

Starting a New Project in Eclipse:

               You need to start Eclipse. After it’s started, you should see something that looks similar to Figure 1-1 . Now you’re ready to start cooking with Android.

Image may be NSFW.
Clik here to view.
Figure 1-1

 

                                  Figure 1-1: The Eclipse development environment has been opened

1. In Eclipse, choose FileNewAndroid Application project. As shown in figure 1-2

2.When select the Android Application Project ,this window is open

Image may be NSFW.
Clik here to view.
3

 

3.When new Android Application window open,enter the Application Name.

Image may be NSFW.
Clik here to view.
4

 

        And then select the Next button press,this window is open

Image may be NSFW.
Clik here to view.
5

 

         And then again Next button press,this window is openImage may be NSFW.
Clik here to view.
6

Click Next

Image may be NSFW.
Clik here to view.
7

 

And then again Next.

Image may be NSFW.
Clik here to view.
8

Click the Finish button

See Eclipse with a  project in the Package Explorer, as shown in Figure 

Image may be NSFW.
Clik here to view.
9

 

  Running the app in the emulator:

Running the application is simple. Upon your instruction, the ADT will launch an emulator with the default launch configuration you built App. Starting your application is as simple as choosing Run➪Run or pressing Ctrl+F11. Either action launches the application in an emulator using the default launch configuration — in this case, ExampleConfiguration. The ADT compiles your application and then deploys it to the emulator.

If you didn’t create a launch configuration, you see the Run As dialog box, shown in Figure  Choose Android Application, and a launch configuration is created for you.

Image may be NSFW.
Clik here to view.
19

If you created the Example Configuration, you see the emulator loading, as shown in Figure

Image may be NSFW.
Clik here to view.
20

Finally the screen you see is the loaded emulator, shown in Figure

Image may be NSFW.
Clik here to view.
21

 

The Emulator Home Screen

Immediately there after, the ADT starts the home Appliances Application for . You should see a white screen containing the words Hello World, MainActivity, as shown in Figure .You just created and started your first Android application.

 


Viewing all articles
Browse latest Browse all 21

Trending Articles