Featured post

Displaying Multiple Fragments in a single Activity

Monday, 12 October 2015

Start With Your First App

To start with Android Application development, one must have the basic knowledge in Java, XML and SQLite database.

In my tutorial, I am using the Eclipse + ADT.

Steps for creating a new Android Application Project:

1. File-> New-> Android Application Project 




2. Enter the Application Name as Hello
3. Click on Next for 4 times.
4. Click Finish after noting down the Activity Name and Layout Name from the New Android Application window. By default it will be MainActivity and activity_main. For beginners it is advisable to leave it as the default ones.
 
Now you have successfully created your Android Application. Now it's the time to display " Say Hello to Android World " in the Virtual Device.
 
Note: You have to create a Virtual Device for testing the application before launching it in the real devices.
 
In order to display it locate the res folder within the Hello project. Expand the res folder. Within it you will find the values folder; Expand it and double click the strings.xml file.
 
Now select the hello(string) from the left pane of the Android Resources (default) window. On the right pane of the same window, you will find attributes for hello_world string. Modify the value to "Say Hello to Android World".
 
 
With this your First App is ready for test.
 
Launching the Application in the Android Virtual Device.

1. Click on the Project and Select Run as Android Application.

Within no time, your application will be launched in the AVD.






















 

No comments:

Post a Comment