Home » Tutorials » How to Make an App for Android

How to Make an App for Android

What is Android

Android is a software stack for mobile devices. It includes an operating system, key applications and middleware. The android SDK provides APIs and the tools necessary to start developing application using Java programming language on the android platform.


Features:

  1. Application framework
  2. Integrated browser
  3. Optimized graphics
  4. SQLite
  5. Media support
  6. GSM telephony
  7. Bluetooth, 3G, Wi-Fi and EDGE
  8.  Camera, GPS, Compass

Android Architecture

Below diagram shows the major components of the Android operating system.

Android_Architecture

Android includes different types of core applications. Such as SMS program, Browser, Calendar, maps, email etc. All applications are developed by java programming language.

Application framework

Android provides an open development platform. Developers can build innovative applications using the platform. Developers are free to use and run background services, access location information and device hardware. They have full access to the application framework APIs using the core applications.

Libraries

Android includes a set of C/C++ libraries, Media libraries, Surface manager, LibWebCore, SGL, 3D libraries, Free type, SQLite etc core libraries.

Android runtime

Every Android application runs on its own process with its own instance of Dalvik virtual machine. Dalvik is written in a way that devices can run more than one VMs efficiently. The executable file of Dalvik VM is in Dalvik executable (.dex) format. The Dalvik relies on Linux kernel for threading and low-level memory management functionalities.

Linux kernel

Linux kernel works as the abstract layer between the hardware platform and the software platform. Android relies on Linux for some core system services, such as security, memory and process management, network stack etc.

How to setup Android application development

Android SDK provides the tool and APIs required to start developing application using Java programming language on Android platform. The Android SDK supports a useful plug-in for Eclipse IDE. Eclipse IDE is known as the Android development tool or ADT which provides a powerful and integrated environment to develop the applications.

Android_2.1_Emulator

To start the development, first we have to install Java platform (JDK), then Eclipse, Android SDK, Android Development tool (ADT). Android is an open source basis and makes easier to produce applications and distribute without waiting for long approval process.

First download and install the latest JDK and then Eclipse Classic 3.5 (Galileo). You can use different versions or Eclipse, such as RCP version or the Java. Then install the latest Android SDK starter deployment package and it are the latest version of SDK tools, called Android SDK and AVD Manager. After downloading unpack the archive in a suitable location. The SDK archive files are unpacked in a location called android-sdk-<machine-platform>. In windows the default location is android-sdk-windows.

Android_SDK

Then add android platform to the SDK. One or more platforms can be added to SDK using Android SDK and AVD Manager.

Launch Android SDK and AVD Manager in Windows from SDK setup.exe and launch at the root of SDK directory .To launch on Mac OS or Linux launch the Android SDK and AVD Manager in the /tools/ folder.

Then Available Packages menu will be shown at Android SDK and AVD Manager Window. Select (1.1 to 2.1) as platform to download.

Android_SDK_AVD_Manager

While fetching HTTP SSL then error may be received. So try with http without using https on Settings menu.

Android_SDK_AVD_Manager

Click Install Selected and select Accept All for accepting selected package. Then Install Accepted and Cancel options will be given. Click Install Accepted to start the download and install the package.

Package_Install

Now the final step is downloading and installing ADT plug-in. To install the ADT there are two ways. First one is through remote update feature and with this remote updates site ADT updates can be downloaded, installed and checked. Alternative way is to download latest ADT as a local site archive.

Launch Eclipse and select Help and then click on Install new Software.

Help

At Available Software dialog click Add, a new window will be prompted to add name for remote site, location of URL and then enter a name for remote site (Such as- Android plug-in) at the Name filed. In the location field enter the URL and click OK. As suggested before if any error uses https instead of https in the URL.

Install1

When OK is clicked Work with will be name-url. To select the Developer Tools select the checkbox.

Then Development tool automatically select Android DDMS Tools as the nested tools and select Next.

Install2

On next window click Next, accept the agreement and dependencies. Then click Finish. Finally Restart the Eclipse.

To check if ADT is working properly, create a new project using File > New > Project. If Android Project is shown on project wizard then ADT installation is correct.

New_Project

Installing Android Application

To install please proceed with following steps

Use Application Menu and open the Android Marketplace.

Here any option from applications to games or search may be accessed. To find desired application use these tool and search to find specific one. Each application will come with its rating and description. So evaluate carefully. To view more details click on the application.

Then click the Install Button which is towards the bottom of the screen.

The next screen will describe the requirements. Simply agree to the terms and the application will be installed.

How to deploy an application

First it is required to port Android platform to the cell phone or get an early access to a phone where the port is already done. At the time of porting write a device drive or two to make the platform work on the hardware. Then need JTAG access to burn the image in flash and debug the drive. Then deploy the Android application via Bluetooth or a USB connection as long as the right host connectivity software and all the right device drivers are available.

How to run a project

First go to Run / Run Configurations. Now click on Android application tab and then New button above the tabs. Call the new configuration and select project with Browse button Now move on the target tab to select the network speed and emulator.

Run_Configurations

Now click on the automatic control to enable side buttons and then click on the manager-button. Here, click on New to create new emulator. You can enter name and details of an emulator. Once it is done click on Create AVD and close the window. Clicks apply and close the configurations. Now you can easily run your project.

Create_New_AVD

Leave a Reply

You must be logged in to post a comment.

© 2015 iLoveAndroid.com. All Rights Reserved. Privacy Policy