Android Application Component
In order to build android application we need to combine multiple blocks those are called building blocks. All the building blocks of android are listed below –
Components | Description |
---|---|
Activities | These are used to handle any user interface activity and its interaction with android device |
Services | Services are used to handle any background processing associated with an application. |
Broadcast Receivers | Broadcast Receivers are used to handle communication between Android OS and applications. |
Content Providers | Content providers handle data and database management related things. |
Android Hello World : Example Application
Now we are listing out all the steps to create android application using the eclipse. Firstly you need to right click inside the blank area of package explorer and then select New -> Android Application Project

Now after selecting the android application project we need to give proper name to android app. You need to change the default package name otherwise eclipse will throw warning message
You need to select the minimum required SDK to create your app compatible with older versions of android. Plese make sure that you will compile your app with latest version of android so that it will be compatible with newer versions of android

Now keep these setting as default for this hello application

Now if you want to change the default icon of android app then you can choose icon otherwise you can keep it as default for practice app

keep these setting as default for this hello application

keep these setting as default for this hello application


In order to run the project you need to right click on the project name and run project as android application.

In our case we have connected android device to computer using USB cable so it will prompt us below window. We have chosen android device to run our project.

Below output will be displayed when you run android project

No comments:
Post a Comment