Thursday, 29 August 2013

My First App


Lets start developing Android Apps.
Open Eclipse IDE.

Click File>New>Android Application Project.
Fill the Application Name, whatever name you want to give to your application.
Fill the Project Name and then the package name.
The package name is of type com.companyname.appname.
Then click next.

Then Configure Project window opens. Keep the default settings and click NEXT.


Now you can choose the icon for your app from the provided icons or can choose a file from your system.
Again click next.

Now give your activity(ie the fie in which all the logic is to be performed) a name, then the layout name and click Finish.


Now in the Package Explorer right click your app name
Click Run As>Android Application.
After doing this, wait for the emulator to start. Your application will be automatically launched after the emulator gets ready.

To know how the "Hello World" is printed go to activity_main.xml and check the TextView.


Remember emulator takes some time to get ready but after its ready you can test your further applications on the same emulator so do not close the emulator till you are working.
The application being shown on the emulator is having the default settings which we will manipulate in next posts.

No comments:

Post a Comment