<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;C0EAQn4zeip7ImA9WhVbEks.&quot;'><id>tag:blogger.com,1999:blog-3691030563119354838</id><updated>2012-05-28T20:20:43.082-07:00</updated><category term='downloads'/><category term='tutorials'/><title>Andriod Programs for free</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://andriodprograms.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691030563119354838/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://andriodprograms.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>PrasannaKumar</name><uri>http://www.blogger.com/profile/13922616802554131728</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/-nlR-7YMNvbw/Tkk6eKeDtSI/AAAAAAAAACE/si2mGPI4FDw/s220/prasurmimarr.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;C0IMQnYzfSp7ImA9WhVbEks.&quot;'><id>tag:blogger.com,1999:blog-3691030563119354838.post-5493858764519367706</id><published>2012-05-28T20:19:00.000-07:00</published><updated>2012-05-28T20:19:43.885-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-05-28T20:19:43.885-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='downloads'/><title>Installing the andriod SDK</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h1 itemprop="name"&gt;Installing the SDK&lt;/h1&gt;&lt;div class="jd-descr" itemprop="articleBody"&gt;&lt;div id="qv-wrapper"&gt;&lt;div id="qv"&gt;&lt;h2&gt;In this document&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;1. Preparing Your Development Computer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;2. Downloading the SDK Starter Package&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;3. Installing the ADT Plugin for Eclipse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;4. Adding Platforms and Other Packages&lt;/a&gt;       &lt;ol&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;Available Packages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;Recommended Packages&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;5. Exploring the SDK (Optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;Next Steps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;Troubleshooting&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;See also&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://developer.android.com/sdk/eclipse-adt.html"&gt;ADT Plugin for Eclipse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://developer.android.com/sdk/adding-components.html"&gt;Adding SDK Packages&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;This page describes how to install the Android SDK and set up your development environment for the first time.&lt;br /&gt;
If you encounter any problems during installation, see the &lt;a href="http://www.blogger.com/post-create.g?blogID=3691030563119354838"&gt;Troubleshooting&lt;/a&gt; section at the bottom of this page.&lt;br /&gt;
&lt;h4&gt;Updating?&lt;/h4&gt;If you already have an Android SDK, use the Android SDK Manager tool to install updated tools and new Android platforms into your existing environment. For information about how to do that, see &lt;a href="http://developer.android.com/sdk/adding-components.html"&gt;Adding SDK Packages&lt;/a&gt;.&lt;br /&gt;
&lt;h2 id="Preparing"&gt;Step 1. Preparing Your Development Computer&lt;/h2&gt;Before getting started with the Android SDK, take a moment to confirm that your development computer meets the &lt;a href="http://developer.android.com/sdk/requirements.html"&gt;System Requirements&lt;/a&gt;. In particular, you might need to install the &lt;a href="http://java.sun.com/javase/downloads/index.jsp"&gt;JDK&lt;/a&gt;, if you don't have it already. &lt;br /&gt;
If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin—the recommended path if you are new to Android—make sure that you have a suitable version of Eclipse installed on your computer as described in the &lt;a href="http://developer.android.com/sdk/requirements.html"&gt;System Requirements&lt;/a&gt; document. If you need to install Eclipse, you can download it from this location: &lt;br /&gt;
&lt;div style="margin-left: 2em;"&gt;&lt;a href="http://www.eclipse.org/downloads/"&gt;http://www.eclipse.org/downloads/&lt;/a&gt;&lt;/div&gt;The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.&lt;br /&gt;
&lt;h2 id="Installing"&gt;Step 2. Downloading the SDK Starter Package&lt;/h2&gt;The SDK starter package is not a full development environment—it includes only the core SDK Tools, which you can use to download the rest of the SDK packages (such as the latest Android platform).&lt;br /&gt;
If you haven't already, get the latest version of the SDK starter package from the &lt;a href="http://developer.android.com/sdk/index.html"&gt;SDK download page&lt;/a&gt;.&lt;br /&gt;
If you downloaded a &lt;code&gt;.zip&lt;/code&gt; or &lt;code&gt;.tgz&lt;/code&gt; package (instead of the SDK installer), unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named &lt;code&gt;android-sdk-&amp;lt;machine-platform&amp;gt;&lt;/code&gt;.&lt;br /&gt;
If you downloaded the Windows installer (&lt;code&gt;.exe&lt;/code&gt; file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).&lt;br /&gt;
Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from the command line.&lt;br /&gt;
&lt;h2 id="InstallingADT"&gt;Step 3. Installing the ADT Plugin for Eclipse&lt;/h2&gt;Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications. It extends the capabilites of Eclipse to let you quickly set up new Android projects, create an application UI, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application. In general, developing in Eclipse with ADT is a highly recommended approach and is the fastest way to get started with Android. &lt;br /&gt;
If you'd like to use ADT for developing Android applications, install it now. Read &lt;a href="http://developer.android.com/sdk/eclipse-adt.html#installing"&gt;Installing the ADT Plugin&lt;/a&gt; for step-by-step installation instructions, then return here to continue the last step in setting up your Android SDK.&lt;br /&gt;
If you prefer to work in a different IDE, you do not need to install Eclipse or ADT. Instead, you can directly use the SDK tools to build and debug your application. The &lt;a href="http://developer.android.com/guide/developing/index.html"&gt;Introduction&lt;/a&gt; to Android application development outlines the major steps that you need to complete when developing in Eclipse or other IDEs.&lt;br /&gt;
&lt;h2 id="AddingComponents"&gt;Step 4. Adding Platforms and Other Packages&lt;/h2&gt;The last step in setting up your SDK is using the Android SDK Manager (a tool included in the SDK starter package) to download essential SDK packages into your development environment.&lt;br /&gt;
The SDK uses a modular structure that separates the major parts of the SDK—Android platform versions, add-ons, tools, samples, and documentation—into a set of separately installable packages. The SDK starter package, which you've already downloaded, includes only a single package: the latest version of the SDK Tools. To develop an Android application, you also need to download at least one Android platform and the associated platform tools. You can add other packages and platforms as well, which is highly recommended.&lt;br /&gt;
If you used the Windows installer, when you complete the installation wizard, it will launch the Android SDK Manager with a default set of platforms and other packages selected for you to install. Simply click &lt;b&gt;Install&lt;/b&gt; to accept the recommended set of packages and install them. You can then skip to &lt;a href="http://developer.android.com/sdk/installing.html#sdkContents"&gt;Step 5&lt;/a&gt;, but we recommend you first read the section about the &lt;a href="http://developer.android.com/sdk/installing.html#components"&gt;Available Packages&lt;/a&gt; to better understand the packages available from the Android SDK Manager.&lt;br /&gt;
You can launch the Android SDK Manager in one of the following ways:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;From within Eclipse, select &lt;b&gt;Window &amp;gt; Android SDK Manager&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;On Windows, double-click the &lt;code&gt;SDK Manager.exe&lt;/code&gt; file at the root of the Android SDK directory.&lt;/li&gt;
&lt;li&gt;On Mac or Linux, open a terminal and navigate to the &lt;code&gt;tools/&lt;/code&gt; directory in the Android SDK, then execute: &lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;android&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;To download packages, use the graphical UI of the Android SDK Manager to browse the SDK repository and select new or updated packages (see figure 1). The Android SDK Manager installs the selected packages in your SDK environment. For information about which packages you should download, see &lt;a href="http://developer.android.com/sdk/installing.html#which"&gt;Recommended Packages&lt;/a&gt;.&lt;br /&gt;
&lt;img src="http://developer.android.com/images/sdk_manager_packages.png" /&gt; &lt;br /&gt;
&lt;div class="img-caption"&gt;&lt;b&gt;Figure 1.&lt;/b&gt; The Android SDK Manager's &lt;b&gt;Available Packages&lt;/b&gt; panel, which shows the SDK packages that are available for you to download into your environment.&lt;/div&gt;&lt;h3 id="components"&gt;Available Packages&lt;/h3&gt;By default, there are two repositories of packages for your SDK: &lt;i&gt;Android Repository&lt;/i&gt; and &lt;i&gt;Third party Add-ons&lt;/i&gt;.&lt;br /&gt;
The &lt;i&gt;Android Repository&lt;/i&gt; offers these types of packages:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;b&gt;SDK Tools&lt;/b&gt; — Contains tools for debugging and testing your application and other utility tools. These tools are installed with the Android SDK starter package and receive periodic updates. You can access these tools in the &lt;code&gt;&amp;lt;sdk&amp;gt;/tools/&lt;/code&gt; directory of your SDK. To learn more about them, see &lt;a href="http://developer.android.com/guide/developing/tools/index.html#tools-sdk"&gt;SDK Tools&lt;/a&gt; in the developer guide.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;SDK Platform-tools&lt;/b&gt; — Contains platform-dependent tools for developing and debugging your application. These tools support the latest features of the Android platform and are typically updated only when a new platform becomes available. You can access these tools in the &lt;code&gt;&amp;lt;sdk&amp;gt;/platform-tools/&lt;/code&gt; directory. To learn more about them, see &lt;a href="http://developer.android.com/guide/developing/tools/index.html#tools-platform"&gt;Platform Tools&lt;/a&gt; in the developer guide.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Android platforms&lt;/b&gt; — An SDK platform is available for every production Android platform deployable to Android-powered devices. Each SDK platform package includes a fully compliant Android library, system image, sample code, and emulator skins. To learn more about a specific platform, see the list of platforms that appears under the section "Downloadable SDK Packages" on the left part of this page.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;USB Driver for Windows&lt;/b&gt; (Windows only) — Contains driver files that you can install on your Windows computer, so that you can run and debug your applications on an actual device. You &lt;i&gt;do not&lt;/i&gt; need the USB driver unless you plan to debug your application on an actual Android-powered device. If you develop on Mac OS X or Linux, you do not need a special driver to debug your application on an Android-powered device. See &lt;a href="http://developer.android.com/guide/developing/device.html"&gt;Using Hardware Devices&lt;/a&gt; for more information about developing on a real device.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Samples&lt;/b&gt; — Contains the sample code and apps available for each Android development platform. If you are just getting started with Android development, make sure to download the samples to your SDK. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Documentation&lt;/b&gt; — Contains a local copy of the latest multiversion documentation for the Android framework API. &lt;/li&gt;
&lt;/ul&gt;The &lt;i&gt;Third party Add-ons&lt;/i&gt; provide packages that allow you to create a development environment using a specific Android external library (such as the Google Maps library) or a customized (but fully compliant) Android system image. You can add additional Add-on repositories by clicking &lt;b&gt;Add Add-on Site&lt;/b&gt;.&lt;br /&gt;
&lt;h3 id="which"&gt;Recommended Packages&lt;/h3&gt;The SDK repository contains a range of packages that you can download. Use the table below to determine which packages you need, based on whether you want to set up a basic, recommended, or full development environment: &lt;br /&gt;
&lt;table style="width: 95%;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;Environment&lt;/th&gt; &lt;th&gt;SDK&amp;nbsp;Package&lt;/th&gt; &lt;th&gt;Comments&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td rowspan="3" style="background-color: #ffffee; font-size: .9em;"&gt;Basic&lt;/td&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;SDK Tools&lt;/td&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;If you've just installed the SDK starter package, then you already have the latest version of this package. The SDK Tools package is required to develop an Android application. Make sure you keep this up to date.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;SDK Platform-tools&lt;/td&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;This includes more tools that are required for application development. These tools are platform-dependent and typically update only when a new SDK platform is made available, in order to support new features in the platform. These tools are always backward compatible with older platforms, but you must be sure that you have the latest version of these tools when you install a new SDK platform.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;SDK platform&lt;/td&gt; &lt;td style="background-color: #ffffee; font-size: .9em;"&gt;You need to download &lt;b style="color: red;"&gt;at least one platform&lt;/b&gt; into your environment, so that you will be able to compile your application and set up an Android Virtual Device (AVD) to run it on (in the emulator). To start with, just download the latest version of the platform. Later, if you plan to publish your application, you will want to download other platforms as well, so that you can test your application on the full range of Android platform versions that your application supports.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="2" style="border: none; font-size: 1.5em; font-weight: bold; text-align: center;"&gt;+&lt;/td&gt;&lt;td style="border: none;"&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td rowspan="3"&gt;Recommended&lt;br /&gt;
(plus Basic)&lt;/td&gt; &lt;td&gt;Documentation&lt;/td&gt; &lt;td&gt;The Documentation package is useful because it lets you work offline and also look up API reference information from inside Eclipse.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Samples&lt;/td&gt; &lt;td&gt;The Samples packages give you source code that you can use to learn about Android, load as a project and run, or reuse in your own app. Note that multiple samples packages are available — one for each Android platform version. When you are choosing a samples package to download, select the one whose API Level matches the API Level of the Android platform that you plan to use.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Usb Driver&lt;/td&gt; &lt;td&gt;The Usb Driver package is needed only if you are developing on Windows and have an Android-powered device on which you want to install your application for debugging and testing. For Mac OS X and Linux platforms, no special driver is needed.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="2" style="border: none; font-size: 1.5em; font-weight: bold; text-align: center;"&gt;+&lt;/td&gt;&lt;td style="border: none;"&gt;&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td rowspan="3"&gt;Full&lt;br /&gt;
(plus Recommended)&lt;/td&gt; &lt;td&gt;Google APIs&lt;/td&gt; &lt;td&gt;The Google APIs add-on gives your application access to the Maps external library, which makes it easy to display and manipulate Maps data in your application. &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Additional SDK Platforms&lt;/td&gt; &lt;td&gt;If you plan to publish your application, you will want to download additional platforms corresponding to the Android platform versions on which you want the application to run. The recommended approach is to compile your application against the lowest version you want to support, but test it against higher versions that you intend the application to run on. You can test your applications on different platforms by running in an Android Virtual Device (AVD) on the Android emulator.&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Once you've installed at least the basic configuration of SDK packages, you're ready to start developing Android apps. The next section describes the contents of the Android SDK to familiarize you with the packages you've just installed.&lt;br /&gt;
For more information about using the Android SDK Manager, see the &lt;a href="http://developer.android.com/sdk/adding-components.html"&gt;Adding SDK Packages&lt;/a&gt; document. &lt;br /&gt;
&lt;h2 id="sdkContents"&gt;Step 5. Exploring the SDK (Optional)&lt;/h2&gt;Once you've installed the SDK and downloaded the platforms, documentation, and add-ons that you need, we suggest that you open the SDK directory and take a look at what's inside.&lt;br /&gt;
The table below describes the full SDK directory contents, with packages installed. &lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th colspan="3"&gt;Name&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;add-ons/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Contains add-ons to the Android SDK development environment, which let you develop against external libraries that are available on some devices. &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;docs/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;A full set of documentation in HTML format, including the Developer's Guide, API Reference, and other information. To read the documentation, load the file &lt;code&gt;offline.html&lt;/code&gt; in a web browser.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;platform-tools/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Contains platform-dependent development tools that may be updated with each platform release. The platform tools include the Android Debug Bridge (&lt;code&gt;adb&lt;/code&gt;) as well as other tools that you don't typically use directly. These tools are separate from the development tools in the &lt;code&gt;tools/&lt;/code&gt; directory because these tools may be updated in order to support new features in the latest Android platform.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;platforms/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Contains a set of Android platform versions that you can develop applications against, each in a separate directory.  &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style="width: 2em;"&gt;&lt;br /&gt;
&lt;/td&gt; &lt;td colspan="2"&gt;&lt;code&gt;&lt;i&gt;&amp;lt;platform&amp;gt;&lt;/i&gt;/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Platform version directory, for example "android-11". All platform version directories contain a similar set of files and subdirectory structure. Each platform directory also includes the Android library (&lt;code&gt;android.jar&lt;/code&gt;) that is used to compile applications against the platform version.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;samples/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Sample code and apps that are specific to platform version.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;tools/&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Contains the set of development and profiling tools that are platform-independent, such as the emulator, the Android SDK Manager, the AVD Manager, &lt;code&gt;ddms&lt;/code&gt;, &lt;code&gt;hierarchyviewer&lt;/code&gt; and more. The tools in this directory may be updated at any time using the Android SDK Manager and are independent of platform releases.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;SDK Readme.txt&lt;/code&gt;&lt;/td&gt; &lt;td&gt;A file that explains how to perform the initial setup of your SDK, including how to launch the Android SDK Manager tool on all platforms.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td colspan="3"&gt;&lt;code&gt;SDK Manager.exe&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Windows SDK only. A shortcut that launches the Android SDK Manager tool, which you use to add packages to your SDK.&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Optionally, you might want to add the location of the SDK's &lt;code&gt;tools/&lt;/code&gt; and &lt;code&gt;platform-tools&lt;/code&gt; to your &lt;code&gt;PATH&lt;/code&gt; environment variable, to provide easy access to the tools.&lt;br /&gt;
&lt;div class="toggleable closed"&gt;&lt;a href="http://developer.android.com/sdk/installing.html#"&gt;         &lt;img class="toggle-img" height="9px" src="http://developer.android.com/assets/images/triangle-closed.png" width="9px" /&gt;         How to update your PATH&lt;/a&gt;    &lt;/div&gt;&lt;h2 id="NextSteps"&gt;Next Steps&lt;/h2&gt;Once you have completed installation, you are ready to begin developing applications. Here are a few ways you can get started: &lt;br /&gt;
&lt;b&gt;Set up the Hello World application&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;If you have just installed the SDK for the first time, go to the &lt;a href="http://developer.android.com/resources/tutorials/hello-world.html"&gt;Hello   World tutorial&lt;/a&gt;. The tutorial takes you step-by-step through the process   of setting up your first Android project, including setting up an Android   Virtual Device (AVD) on which to run the application. &lt;/li&gt;
&lt;/ul&gt;&lt;div class="note"&gt;Following the Hello World tutorial is an essential first step in getting started with Android development. &lt;/div&gt;&lt;b&gt;Learn about Android&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Take a look at the &lt;a href="http://developer.android.com/guide/index.html"&gt;Dev   Guide&lt;/a&gt; and the types of information it provides.&lt;/li&gt;
&lt;li&gt;Read an introduction to Android as a platform in &lt;a href="http://developer.android.com/guide/basics/what-is-android.html"&gt;What is   Android?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Learn about the Android framework and how applications run on it in   &lt;a href="http://developer.android.com/guide/topics/fundamentals.html"&gt;Application   Fundamentals&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Take a look at the Android framework API specification in the &lt;a href="http://developer.android.com/reference/packages.html"&gt;Reference&lt;/a&gt; tab.&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Explore the development tools&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Get an overview of the &lt;a href="http://developer.android.com/guide/developing/tools/index.html"&gt;development   tools&lt;/a&gt; that are available to you.&lt;/li&gt;
&lt;li&gt;Read the &lt;a href="http://developer.android.com/guide/developing/index.html"&gt;Introduction&lt;/a&gt; to Android application development.   &lt;/li&gt;
&lt;li&gt;Read &lt;a href="http://developer.android.com/guide/developing/device.html"&gt;Using Hardware Devices&lt;/a&gt; to learn how to set up an Android-powered device so you can run and test your application.&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Follow the Notepad tutorial&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The &lt;a href="http://developer.android.com/resources/tutorials/notepad/index.html"&gt;   Notepad Tutorial&lt;/a&gt; shows you how to build a full Android application   and provides  helpful commentary on the Android system and API. The   Notepad tutorial helps you bring together the important design   and architectural concepts in a moderately complex application.   &lt;/li&gt;
&lt;/ul&gt;&lt;div class="note"&gt;Following the Notepad tutorial is an excellent second step in getting started with Android development. &lt;/div&gt;&lt;b&gt;Explore some code&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The Android SDK includes sample code and applications for each platform version. You can browse the samples in the &lt;a href="http://developer.android.com/resources/index.html"&gt;Resources&lt;/a&gt; tab or download them into your SDK using the Android SDK Manager. Once you've downloaded the samples, you'll find them in &lt;code&gt;&lt;i&gt;&amp;lt;sdk&amp;gt;&lt;/i&gt;/samples/&lt;i&gt;&amp;lt;platform&amp;gt;/&lt;/i&gt;&lt;/code&gt;. &lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Visit the Android developer groups&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Take a look at the &lt;a href="http://developer.android.com/resources/community-groups.html"&gt;Community&lt;/a&gt; pages to see a list of   Android developers groups. In particular, you might want to look at the   &lt;a href="http://groups.google.com/group/android-developers"&gt;Android   Developers&lt;/a&gt; group to get a sense for what the Android developer   community is like.&lt;/li&gt;
&lt;/ul&gt;&lt;h2 id="troubleshooting"&gt;Troubleshooting&lt;/h2&gt;&lt;h3&gt;Ubuntu Linux Notes&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;If you need help installing and configuring Java on your     development machine, you might find these resources helpful:     &lt;ul&gt;&lt;li&gt;&lt;a href="https://help.ubuntu.com/community/Java"&gt;https://help.ubuntu.com/community/Java &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://help.ubuntu.com/community/Java"&gt;https://help.ubuntu.com/community/JavaInstallation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Here are the steps to install Java and Eclipse, prior to installing   the Android SDK and ADT Plugin.     &lt;ol&gt;&lt;li&gt;If you are running a 64-bit distribution on your development       machine, you need to install the &lt;code&gt;ia32-libs&lt;/code&gt; package using       &lt;code&gt;apt-get:&lt;/code&gt;:       &lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;apt&lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="kwd"&gt;get&lt;/span&gt;&lt;span class="pln"&gt; install ia32&lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;libs&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Next, install Java: &lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;apt&lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="kwd"&gt;get&lt;/span&gt;&lt;span class="pln"&gt; install sun&lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;java6&lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;jdk&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;The Ubuntu package manager does not currently offer an Eclipse 3.3       version for download, so we recommend that you download Eclipse from       eclipse.org (&lt;a href="http://www.eclipse.org/downloads/"&gt;http://www.eclipse.org/       downloads/&lt;/a&gt;). A Java or RCP version of Eclipse is recommended.&lt;/li&gt;
&lt;li&gt;Follow the steps given in previous sections to install the SDK       and the ADT plugin. &lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;Other Linux Notes&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;If JDK is already installed on your development computer, please   take a moment to make sure that it meets the version requirements listed   in the &lt;a href="http://developer.android.com/sdk/requirements.html"&gt;System Requirements&lt;/a&gt;.   In particular, note that some Linux distributions may include JDK 1.4 or Gnu   Compiler for Java, both of which are not supported for Android development.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3691030563119354838-5493858764519367706?l=andriodprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andriodprograms.blogspot.com/feeds/5493858764519367706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andriodprograms.blogspot.com/2012/05/installing-andriod-sdk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691030563119354838/posts/default/5493858764519367706?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691030563119354838/posts/default/5493858764519367706?v=2'/><link rel='alternate' type='text/html' href='http://andriodprograms.blogspot.com/2012/05/installing-andriod-sdk.html' title='Installing the andriod SDK'/><author><name>PrasannaKumar</name><uri>http://www.blogger.com/profile/13922616802554131728</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/-nlR-7YMNvbw/Tkk6eKeDtSI/AAAAAAAAACE/si2mGPI4FDw/s220/prasurmimarr.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0cCQHc4eyp7ImA9WhVbEkg.&quot;'><id>tag:blogger.com,1999:blog-3691030563119354838.post-1159303142578345063</id><published>2012-05-28T19:34:00.001-07:00</published><updated>2012-05-28T19:37:41.933-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-05-28T19:37:41.933-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='tutorials'/><title>Andriod begginers tutorials</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;Introduction&lt;/h2&gt;This tutorial is a starting point for developing Android apps. It  will explain the very basics of the Android SDK (Software Development  Kit) and how to use it with Eclipse. To understand this tutorial, you  don't need to have any knowledge about programming in Java, but it might  be helpful for further programming to understand the basics of object  orientated programming. This tutorial explains Android beginners how to  create an Android Project in Eclipse, work with resources, and create  some first code.&lt;br /&gt;
&lt;h2&gt;Setup Eclipse and the Android SDK&lt;/h2&gt;If you don't already have a running environment to develop Android apps, follow the instructions at this &lt;a href="http://developer.android.com/sdk/index.html"&gt;link&lt;/a&gt;.&lt;br /&gt;
&lt;b&gt;Hint:&lt;/b&gt; PATH means the Path Environment Variable. In Windows, you will find it under "&lt;i&gt;Control Panel/System/Advanced System Settings/Environment Variables&lt;/i&gt;" in the lower list box. You can check what version of Java is installed, by going in the command line and typing &lt;i&gt;java -version&lt;/i&gt;.&lt;br /&gt;
&lt;h2&gt;Let's Get Started&lt;/h2&gt;Now we want to create our first application, which is (as always) a  Hello World application. First of all, start Eclipse. Then select  "File/New/Project". In the "New Project" dialog, select "Android/Android  Project" and click "Next".&lt;br /&gt;
&lt;img alt="New_Project_empty.jpg" height="846" src="http://www.codeproject.com/KB/android/AndroidGuide/New_Project_empty.jpg" width="524" /&gt;&lt;br /&gt;
Here you can set up the project. First of all, we need to give the  project a name, so type "Hello World" in the name box. Next you have to  select the Android version you want to use. Here we choose version 2.2.  As we see in the last column, we need the API Version 8 for this Android  version, so we type an "8" in the Min SDK Version box. Also, the  project requires an application name. (Notice that this name is also  used in code, so the name should have no whitespaces). Usually, you use  the project name and delete all whitespaces (e.g., "helloworld" for this  project). Next, you have to define the package of the project. We will  use "com.test.helloworld" here (a package can group multiple classes;  for more information, see &lt;a href="http://en.wikipedia.org/wiki/Object-oriented_programming"&gt;here&lt;/a&gt;).  At least, you need a name for the activity (one App might have multiple  Activities; they are like a single part/screen of the app). In this  example, we simply use "HelloWorldApp".&lt;br /&gt;
&lt;img alt="New_Project.jpg" height="848" src="http://www.codeproject.com/KB/android/AndroidGuide/New_Project.jpg" width="524" /&gt;&lt;br /&gt;
Before we can finally start our first project, we need to create a  configuration. This configuration specifies under which circumstances  the app will be started. E.g., you can control the network speed the  emulator/app can use. Also, you can choose different emulators to test  the app with different versions of Android or in different screen sizes.  To create the configuration, go to "Run/Run Configurations". Now click  the "Android Application" tab at the side and then the New button above  the tabs. Call the new configuration "HelloWorldConfig" and select our  project over the Browse button. Now move on to the target tab. Here you  can select the network speed and which emulator will be used.&lt;br /&gt;
&lt;img alt="Run_Config_Screen.jpg" height="699" src="http://www.codeproject.com/KB/android/AndroidGuide/Run_Config_Screen.jpg" width="592" /&gt;&lt;br /&gt;
Since we haven't created an emulator till now, we need to do that  first. Click the automatic control to enable the buttons at the side and  then click on the manager-button. Here, click the new button to the  right to create a new emulator. In the following screen, you can enter a  name for the emulator (I have used "DefaultAndroidEmulator") and  specify the details (like Android version, SD card size, and much more).  You can control every little detail of the emulator over the hardware  section.&lt;br /&gt;
&lt;img alt="Create_Emulator_.jpg" height="568" src="http://www.codeproject.com/KB/android/AndroidGuide/Create_Emulator_.jpg" width="410" /&gt;&lt;br /&gt;
Once you are done with that, click "Create AVD" and close the manager  window. Now we have successfully created the run configurations. Click  "Apply" and close the configurations. At least run your first Android  project.&lt;br /&gt;
Notice: It may take the emulator some time to get started, so be  patient! Also, I have cropped the image so that you can't see the  keyboard or the D-pad.&lt;br /&gt;
&lt;b&gt;Congratulations! You just created your first App!&lt;/b&gt;&lt;br /&gt;
&lt;img alt="First_App_.jpg" height="569" src="http://www.codeproject.com/KB/android/AndroidGuide/First_App_.jpg" width="383" /&gt;&lt;br /&gt;
&lt;h2&gt;Coding is Fun&lt;/h2&gt;After we have set up everything, it's (finally) time to actually  getting started with the code, because we all know: Coding is fun!&lt;br /&gt;
But before we can actually jump into the Java code, we need to  understand the structure of an Android Application. Go to your Package  Explorer and enlarge the "Hello World" project. You will see five  folders and two files. Let's get started with the one of these two  files, the AndroidManifest file. This file contains all the information  about your project, like the icon, the name of the author. To open it,  make a right click on it and choose "Open With/Android Manifest Editor".  In the upcoming tab, you can specify the package name and the version  of your project. At the bottom, you will find additional tabs. I think  most of the settings you will find are pretty much self-explanatory.  Note the @ in front of some attributes. This shows that the following  string is a reference to a resource. You can find the resources in the "&lt;i&gt;res&lt;/i&gt;" folder of your project. If you enlarge it, you will notice that it has some subfolders. To be specific, the &lt;i&gt;res&lt;/i&gt; folder can have seven types of subfolders: &lt;i&gt;values&lt;/i&gt;, &lt;i&gt;drawable&lt;/i&gt;, &lt;i&gt;layout&lt;/i&gt;, &lt;i&gt;animations&lt;/i&gt;, &lt;i&gt;xml&lt;/i&gt;, &lt;i&gt;styles&lt;/i&gt;, and &lt;i&gt;raw&lt;/i&gt;.&lt;br /&gt;
Let's focus on the &lt;i&gt;values&lt;/i&gt; folder first. Here you can store  all kinds of simple resources (like strings, colors, numbers,  dimensions, arrays, etc.). By default, you will find the &lt;i&gt;strings.xml&lt;/i&gt;  file in there. When you open it (with right click, "Open with/Android  Layout Editor"), you will see that it contains two values. The first is  the message you see when you run your project, and the second is the  name of your app. You can add new values if you want to use them later  on in code (or in the Manifest or Layout files). You can also create  specific resources using quantifiers. If you add a - to the folder's  name, you can add a quantifier to the name. E.g., you can rename the &lt;i&gt;values&lt;/i&gt; folder to &lt;i&gt;values-en&lt;/i&gt;  which means that the content of the folder is only used by Android  phones with English language activated. If you do not add a quantifier,  the resources are default. The default resources are used if no specific  resources for the current system are found. If the project is started,  all resources will be compiled as efficiently as possible and added to  the package. Also, a reference will be created (called R) which allows  you to access the resources in code. Since this is only a tutorial, I  will not focus on all the types of resources here. You can find more  information on resources and quantifiers &lt;a href="http://developer.android.com/guide/topics/resources/index.html"&gt;here&lt;/a&gt;.&lt;br /&gt;
At last, it is time to start coding! Go to the "&lt;i&gt;src&lt;/i&gt;" folder. In the folder, you will find the package folder, open the &lt;i&gt;HelloWorld.java&lt;/i&gt; file. You will see the default code for an Android Activity:&lt;br /&gt;
&lt;div class="pre-action-link" id="premain0" style="display: block;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre0" lang="java" style="margin-top: 0pt;"&gt;&lt;span class="code-keyword"&gt;package&lt;/span&gt; com.test.helloworld; &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;the package we are working in
&lt;/span&gt;
&lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;some android packages we need to import
&lt;/span&gt;&lt;span class="code-keyword"&gt;import&lt;/span&gt; android.app.Activity;
&lt;span class="code-keyword"&gt;import&lt;/span&gt; android.os.Bundle;

&lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;our activity class (extendes the default activity class)
&lt;/span&gt;&lt;span class="code-keyword"&gt;public&lt;/span&gt; &lt;span class="code-keyword"&gt;class&lt;/span&gt; HelloWorldApp &lt;span class="code-keyword"&gt;extends&lt;/span&gt; Activity {
    &lt;span class="code-comment"&gt;/*&lt;/span&gt;&lt;span class="code-comment"&gt;* Called when the activity is first created. */&lt;/span&gt;
    @Override
    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;the function called when activity is created
&lt;/span&gt;    &lt;span class="code-keyword"&gt;public&lt;/span&gt; &lt;span class="code-keyword"&gt;void&lt;/span&gt; onCreate(Bundle savedInstanceState) {
        &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;call the create fct. Of the base class
&lt;/span&gt;        &lt;span class="code-keyword"&gt;super&lt;/span&gt;.onCreate(savedInstanceState);
        &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;load the layout specified in the layout.xml
&lt;/span&gt;        setContentView(R.layout.main);
    }
}&lt;/pre&gt;As you can see, we create a new activity by extending the default Android activity class. Then we override the default &lt;code&gt;onCreate&lt;/code&gt; function, which is called when the project is created. In there, we load our own layout from the resources and also call the &lt;code&gt;onCreate&lt;/code&gt;  function of the base class. Now let's take a closer look at the layout  file. You find it in the layout folder under resources. When you open  it, it should look like this:&lt;br /&gt;
&lt;div class="pre-action-link" id="premain1" style="display: block;" width="100%"&gt;&lt;img height="9" id="preimg1" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer;" width="9" /&gt;&lt;span id="precollapse1" style="cursor: pointer; margin-bottom: 0pt;"&gt; Collapse&lt;/span&gt; | &lt;a href="http://www.codeproject.com/Articles/102065/Android-A-beginner-s-guide#"&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id="pre1" lang="Xml" style="margin-top: 0pt;"&gt;&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;linearlayout&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; 
    &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:orientation&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;vertical"&lt;/span&gt; 
    &lt;span class="code-attribute"&gt;xmlns:android&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;http://schemas.android.com/apk/res/android"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;textview&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;wrap_content"&lt;/span&gt; 
        &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:text&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;@string/hello"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-leadattribute"&gt;linearlayout&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;You see the root node is called &lt;code&gt;LinearLayout&lt;/code&gt;. As you you might already have figured out, there are different types of layouts:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;code&gt;FrameLayout&lt;/code&gt;: All controls (children) are placed in the upper left corner.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;LinearLayout&lt;/code&gt;: All children are positioned in vertical/horizontal order.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;RelativeLayout&lt;/code&gt;: The positions of the children are specified in relation to the other children.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;TableLayout&lt;/code&gt;: The child elements are placed with a grid.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AbsoluteLayout&lt;/code&gt;: The child elements are positioned based on absolute coordinates (in pixel).&lt;/li&gt;
&lt;/ul&gt;Once you have chosen a layout type, you can add child elements. In the code given, there is already a &lt;code&gt;TextView&lt;/code&gt;, which is used to display text on the screen. The current content is a reference to a resource defined in the &lt;i&gt;values.xml&lt;/i&gt;  file. As you will see, it uses the whole width of the screen, but is  only as long as it needs to, to display the content. We might start with  some small changes. Let's change the text color of the &lt;code&gt;TextView&lt;/code&gt; to green:&lt;br /&gt;
&lt;div class="pre-action-link" id="premain2" style="display: block;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre2" lang="Xml" style="margin-top: 0pt;"&gt;&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;textview&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;wrap_content"&lt;/span&gt; 
    &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:text&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;@string/hello"&lt;/span&gt; 
    &lt;span class="code-attribute"&gt;android:textcolor&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;#FF00FF00"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;Now, launch the project and see the changes. Next, let's add a new control called &lt;code&gt;EditText&lt;/code&gt;:&lt;br /&gt;
&lt;div class="pre-action-link" id="premain3" style="display: block;" width="100%"&gt;&lt;img height="9" id="preimg3" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer;" width="9" /&gt;&lt;span id="precollapse3" style="cursor: pointer; margin-bottom: 0pt;"&gt; Collapse&lt;/span&gt; | &lt;a href="http://www.codeproject.com/Articles/102065/Android-A-beginner-s-guide#"&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id="pre3" lang="Xml" style="margin-top: 0pt;"&gt;&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;linearlayout&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; 
     &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:orientation&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;vertical"&lt;/span&gt; 
     &lt;span class="code-attribute"&gt;xmlns:android&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;http://schemas.android.com/apk/res/android"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;edittext&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;wrap_content"&lt;/span&gt; 
             &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:textcolor&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;#FF0000FF"&lt;/span&gt;
             &lt;span class="code-attribute"&gt;android:id&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;@+id/et_Text"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-leadattribute"&gt;textview&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_height&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;wrap_content"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:layout_width&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;fill_parent"&lt;/span&gt;
    &lt;span class="code-attribute"&gt;android:textcolor&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;#FF00FF00"&lt;/span&gt; &lt;span class="code-attribute"&gt;android:id&lt;/span&gt;&lt;span class="code-keyword"&gt;="&lt;/span&gt;&lt;span class="code-keyword"&gt;@+id/lv_View"&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="code-keyword"&gt;&amp;lt;&lt;/span&gt;&lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-leadattribute"&gt;linearlayout&lt;/span&gt; &lt;span class="code-keyword"&gt;/&lt;/span&gt;&lt;span class="code-keyword"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;When we want to access the controls in code, they need to have an ID. Next we create some code for the controls. Go to the &lt;i&gt;helloworld.java&lt;/i&gt; file.&lt;br /&gt;
&lt;div class="pre-action-link" id="premain4" style="display: block;" width="100%"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre id="pre4" lang="java" style="display: block; margin-top: 0pt;"&gt;@Override
&lt;span class="code-keyword"&gt;public&lt;/span&gt; &lt;span class="code-keyword"&gt;void&lt;/span&gt; onCreate(Bundle savedInstanceState) {
    &lt;span class="code-keyword"&gt;super&lt;/span&gt;.onCreate(savedInstanceState);
    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;loading the layout over the resource reference
&lt;/span&gt;    setContentView(R.layout.main);
        
    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;get the two controls we created earlier, also with the resource reference and the id
&lt;/span&gt;    &lt;span class="code-keyword"&gt;final&lt;/span&gt; TextView tv_View = (TextView)findViewById(R.id.tv_View);
    &lt;span class="code-keyword"&gt;final&lt;/span&gt; EditText et_Text = (EditText)findViewById(R.id.et_Text);
        
    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;add new KeyListener Callback (to record key input)
&lt;/span&gt;    et_Text.setOnKeyListener(&lt;span class="code-keyword"&gt;new&lt;/span&gt; OnKeyListener()
    {
        &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;function to invoke when a key is pressed
&lt;/span&gt;        &lt;span class="code-keyword"&gt;public&lt;/span&gt; &lt;span class="code-keyword"&gt;boolean&lt;/span&gt; onKey(View v, &lt;span class="code-keyword"&gt;int&lt;/span&gt; keyCode, KeyEvent event)
        {
            &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;check if there is 
&lt;/span&gt;            &lt;span class="code-keyword"&gt;if&lt;/span&gt; (event.getAction() == KeyEvent.ACTION_DOWN)
            {
                &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;check if the right key was pressed
&lt;/span&gt;                &lt;span class="code-keyword"&gt;if&lt;/span&gt; (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
                {
                                    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;add the text to the textview
&lt;/span&gt;                    tv_View.setText(tv_View.getText() + &lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;, "&lt;/span&gt; + 
                                     et_Text.getText());
                                    &lt;span class="code-comment"&gt;//&lt;/span&gt;&lt;span class="code-comment"&gt;and clear the EditText control
&lt;/span&gt;                    et_Text.setText(&lt;span class="code-string"&gt;"&lt;/span&gt;&lt;span class="code-string"&gt;"&lt;/span&gt;);
                    &lt;span class="code-keyword"&gt;return&lt;/span&gt; true;
                }
            }
            &lt;span class="code-keyword"&gt;return&lt;/span&gt; false;
        }
    });
}&lt;/pre&gt;We will analyze the code line by line. First of all, as before, we load the layout. Then we create a &lt;code&gt;TextView&lt;/code&gt; and a &lt;code&gt;EditText&lt;/code&gt; variable and load our interface objects in them (that's what we need the ID for). Finally, we add a new &lt;code&gt;OnKeyListener&lt;/code&gt; to the &lt;code&gt;EditText&lt;/code&gt; control. In this &lt;code&gt;OnKeyListener&lt;/code&gt;, we create the method &lt;code&gt;onKey&lt;/code&gt;,  which is called when a key is pressed, when the control is active. In  the method, we perform two checks: the first to be sure that a key is  pressed down (and not released), and the second to specify the key (in  this case, the center key of the D-pad). If both checks are passed, we  add the text of the &lt;code&gt;EditText&lt;/code&gt; control to the &lt;code&gt;TextView&lt;/code&gt;, and finally the text of the &lt;code&gt;EditText&lt;/code&gt; control is deleted. Run and test the application. Great, you created your first real Android app.&lt;br /&gt;
&lt;img alt="Final_App_.jpg" height="569" src="http://www.codeproject.com/KB/android/AndroidGuide/Final_App_.jpg" width="384" /&gt;&lt;br /&gt;
&lt;h2&gt;Android App Design&lt;/h2&gt;As with every platform, Android has its own design challenges. Always  keep in mind that you are developing for a mobile platform with limited  memory, disk space, and processing power. Therefore, Android  automatically kills processes (each app runs in its own process) to keep  the system responsive. Processes are sorted after importance. The most  important is the currently active process, followed by visible and  stated service processes. The bottommost types of processes in hierarchy  are background and empty processes. Keep that in mind when you design  your application, because you don't want its process to be killed in the  middle of something. Also, you can use whatever hardware is built into  the Android phone. But notice that not all phones might have this  hardware, and so not all might be able to run your app.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3691030563119354838-1159303142578345063?l=andriodprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andriodprograms.blogspot.com/feeds/1159303142578345063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://andriodprograms.blogspot.com/2012/05/andriod-begginers-tutorials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3691030563119354838/posts/default/1159303142578345063?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3691030563119354838/posts/default/1159303142578345063?v=2'/><link rel='alternate' type='text/html' href='http://andriodprograms.blogspot.com/2012/05/andriod-begginers-tutorials.html' title='Andriod begginers tutorials'/><author><name>PrasannaKumar</name><uri>http://www.blogger.com/profile/13922616802554131728</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/-nlR-7YMNvbw/Tkk6eKeDtSI/AAAAAAAAACE/si2mGPI4FDw/s220/prasurmimarr.JPG'/></author><thr:total>0</thr:total></entry></feed>