BANGALORE, INDIA: We all know that with the demand in applications for Smartphones, developers around the world are attracted towards developing applications for Android. First of all, Android is License free, royalty free, and open source.
Secondly, Android applications are written in Java, that has a rich set of libraries and anyone with a small knowledge of Java can also get Android applications up and running with relative ease.
In this article, I am going to explain the procedure of creating a small user interface application in Android that will ask the user to enter a name. After entering a name, when user selects a button, a Welcome message will be displayed along with the user's name in response.
I assume Java, Android SDK and Eclipse are installed on your machine. In this article, we are going to create a small Android application that will ask user to enter a name and in return a welcome message will be displayed to the user. So, let's start with it.
Open Eclipse and select File->New->Android Project option to create a new project. We get a dialog box as shown in Figure 1.
In the Project name: box, enter the name of our project. Let's name our project as WelcomeMsg. Since, this is a new project, select Create new project in workspace radio button. Also, select the checkbox, Use default location to create the project files at the default location that was specified while opening Eclipse for the first time. From the Build Target section, select the version of Android that represents the device most commonly used by our target audience. Let's select the Android 1.5 as the target platform.
In the Application name: box, specify the name of the application. Let's assign the application name the same as our project name i.e. WelcomeMsg. In Package name: box, enter the package name as com.androidbook.WelcomeMsg. Specify the activity name as WelcomeMsgActivity and check the checkbox Create Actvity: to create the default launch Activity class for our application. Finally, select the Finish button.
Click hereĀ to read more!
Get most out of your technology infrastructure investments with Dell
About CIOL | Media Kit | Site Map | Contact Us | Help | Write to us | Jobs@CyberMedia | Privacy Policy
Copyright © CyberMedia India Online Ltd. All rights reserved. Usage of content from web site is subject to Terms and Conditions.