Pages

Tuesday, 12 August 2014

Creating Simple List View



List View is a view group that displays a list of scrollable items. This list items are automatically inserted to the list using an  Adopter that pulls content from a source such as an array or database query and converts each item result into a view that's placed into the list.


Simple Program show the ListView Layout

Step 1: Create a new Project
              File->New->Android Application Project.

Step 2: In Package Explorer Right Click on res/layout folder under your project
              Go to New->Android XML file->listview.xml (you can use any
                  name you wish).

Step 3: Open the newly created xml file(listview.xml) and write the below
              code to define the listview in xml.


listview.xml


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >
    </ListView>

</LinearLayout>


 Step 4: To set this new xml view as the intial view of your app.
            Go to MainActivity.java you will see setContentView(R.layout.activity_main) inside onCreate(). Change R.layout.activity_main to R.layout.listview.


MainActivity.java


package com.example.hello_world;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.listview);

        ListView lv = (ListView) findViewById(R.id.listView1);

        String[] values = new String[] { "Android List View",
                "Adapter implementation", "Simple List View In Android",
                "Create List View Android", "Android Example",
                "List View Source Code", "List View Array Adapter",
                "Android Example List View" };

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, values);

        lv.setAdapter(adapter);
    }
}




Table Layout



Table Layout in android lets you arranges component in rows and columns, in the same way as HTML table layout works bye dividing it into <tr> and </td>.

Simple Program show the Table Layout

Step 1: Create a new Project
              File->New->Android Application Project.

Step 2: In Package Explorer Right Click on res/layout folder under your project
              Go to New->Android XML file->table_layout.xml (you can use any
                  name you wish).

Step 3: Open the newly created xml file(table_layout.xml) and write the below
              code.

  table_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffff"
    android:shrinkColumns="*"
    android:stretchColumns="*" >

    <TableRow
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#dcdcdc"
            android:gravity="center"
            android:text="Row 1"
            android:textSize="25sp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#b0b0b0"
            android:gravity="center"
            android:text="Row 1"
            android:textSize="25sp" />
    </TableRow>

    <TableRow
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#d3d3d3"
            android:gravity="center"
            android:text="Row 2"
            android:textSize="25sp" />
    </TableRow>

    <TableRow
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#cac9c9"
            android:gravity="center"
            android:text="Row 3"
            android:textSize="25sp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#b0b0b0"
            android:gravity="center"
            android:text="Row 3"
            android:textSize="25sp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#a09f9f"
            android:gravity="center"
            android:text="Row 3"
            android:textSize="25sp" />
    </TableRow>

</
TableLayout>


Step 4: To set this new xml view as the intial view of your app.
            Go to MainActivity.java you will see setContentView(R.layout.activity_main) inside onCreate(). Change R.layout.activity_main to R.layout.table_layout.

MainActivity.java

package com.example.hello_world;

import android.app.Activity;

import android.os.Bundle;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.
table_layout);
    }
}


Step 5: Now to run the code Right Click on project->Run As-> 1.Android Application. You should see the newly created linear layout in emulator.

Monday, 11 August 2014

Relative Layout



Relative Layout is a view group that displays child views in relative positions. In this every elements arranges itself relative to other elements (such as to the left-of or below another view) or in positions relative to the parent Relative Layout area (such as aligned to the bottom, left of center).

Simple Program show the Relative Layout

Step 1: Create a new Project
              File->New->Android Application Project.

Step 2: In Package Explorer Right Click on res/layout folder under your project
              Go to New->Android XML file->relative_layout.xml (you can use any
                  name you wish).

Step 3: Open the newly created xml file(relative_layout.xml) and write the below
              code.

 relative_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="74dp"
        android:ems="10"

        android:hint="Email Address"
        android:inputType="textWebEmailAddress" />

    <EditText
        android:id="@+id/editText2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_below="@+id/editText1"
        android:layout_marginTop="5dp"
        android:ems="10"

        android:hint="Password"
        android:inputType="textPassword" >
    </EditText>

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/editText2"
        android:layout_marginLeft="56dp"
        android:layout_marginTop="18dp"
        android:text="Submit" />

    <Button
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button1"
        android:layout_alignBottom="@+id/button1"
        android:layout_marginLeft="16dp"
        android:layout_toRightOf="@+id/button1"
        android:text="Cancel" />

    <Button
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button1"
        android:layout_alignParentBottom="true"
        android:layout_marginLeft="46dp"
        android:text="Register" />

</RelativeLayout>


 Step 4: To set this new xml view as the intial view of your app.
            Go to MainActivity.java you will see setContentView(R.layout.activity_main) inside onCreate(). Change R.layout.activity_main to R.layout.relative_layout.


MainActivity.java

package com.example.hello_world;

import android.app.Activity;

import android.os.Bundle;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.
relative_layout);
    }
}


Step 5: Now to run the code Right Click on project->Run As-> 1.Android Application. You should see the newly created linear layout in emulator.

Layout



A layout defines the visual structure for a user interface, such as the UI for an activity or app widget. You can declare a layout in two ways:

  • Declare UI elements in XML. Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts.
  • Instantiate layout elements at runtime. Your application can create View and ViewGroup objects (and manipulate their properties.
The Android framework gives you the flexibility to use either or both of these methods for declaring and managing your application's UI.

There are six different layouts:
  1. Linear Layout
  2. Relative Layout
  3. Table Layout
  4. Grid Layout
  5. Tab Layout
  6. List View
 Note:All layout must be placed inside /res/layout folder of the project. File name of the layout must start with small letter and should not contain special characters except Under scope("_").






  1. Linear Layout

In Linear Layout the elements are align in a single or linear direction i.e. either Horizontally or Vertically. To specify the direction you have to use the android:orientation=" " attribute in the layout tag.

Simple Program show the Liner Layout

Step 1: Create a new Project
              File->New->Android Application Project.

Step 2: In Package Explorer Right Click on res/layout folder under your project
              Go to New->Android XML file->linear_layout.xml (you can use any
                  name you wish).

Step 3: Open the newly created xml file(linear_layout.xml) and write the below
              code.

linear_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <
EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="@string/to"
        android:ems="10" >
    </EditText>

    <
EditText
        android:id="@+id/editText2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="@string/message"
        android:inputType="textPersonName" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <
TextView
            android:id="@+id/textView1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="@string/send"
            android:textAlignment="center" />

        <TextView

            android:id="@+id/textView2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="@string/cancel"
            android:textAlignment="center" />
    </LinearLayout>

</
LinearLayout>

Step 4: To set this new xml view as the intial view of your app.
            Go to MainActivity.java you will see setContentView(R.layout.activity_main) inside onCreate(). Change R.layout.activity_main to R.layout.linear_layout.

MainActivity.java

package com.example.hello_world;

import android.app.Activity;

import android.os.Bundle;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.linear_layout);
    }
}


Step 5: Now to run the code Right Click on project->Run As-> 1.Android Application. You should see the newly created linear layout in emulator.



Program to print Hello World

First have to first create project as it have been already told in the earlier post.

Now type the below codes in their respective file.

MainActivity.java

package com.example.hello_world;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends Activity {

    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override

    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override

    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

activity_main.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world"
        android:textSize="15sp"
        android:layout_margin="20dp"
        android:textStyle="italic|bold"/>

</
LinearLayout>

Now to see the output on Emulator screen.

Go to Run->Run->Pick up the device you want to run on.


Friday, 8 August 2014

Create A New Poject




Step 1:- File->New->Android Application Project

Step 2:- New Android Application->Fill Application Name->Hello_World


Step 3:- Press Next->Configure Project


Step 4:- Press Next->Configure the attributes of the icon set


Step 5:- Next->Create an activity->Select Blank Activity.


Step 6:- Press Next-> Blank Activity


Step 7:- Finish

Note:- After You pressed Finish you will see that a Project is create with Hello_World file name with an appcompat_v7 file created simultaneously.

Starting New Android Virtual Device(AVD)

An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator.

AVD consists of:  

  • A hardware profile: Defines the hardware features of the virtual device. For example, you can define whether the device has a camera, whether it uses a physical QWERTY keyboard or a dialing pad, how much memory it has, and so on.
  • A mapping to a system image: You can define what version of the Android platform will run on the virtual device. You can choose a version of the standard Android platform or the system image packaged with an SDK add-on.
  • Other options: You can specify the emulator skin you want to use with the AVD, which lets you control the screen dimensions, appearance, and so on. You can also specify the emulated SD card to use with the AVD.  
  • A dedicated storage area on your development machine: the device's user data (installed applications, settings, and so on) and emulated SD card are stored in this area.
Note:-You can create as many AVDs as you need, based on the types of device you want to model. To thoroughly test your application, you should create an AVD for each general device configuration (for example, different screen sizes and platform versions) with which your application is compatible and test your application on each one.

Keep It in mind when create AVD:

You should create at least one AVD that uses a target whose API Level is greater than that required by your application, because it allows you to test the forward-compatibility of your application. Forward-compatibility testing ensures that, when users who have downloaded your application receive a system update, your application will continue to function normally.


The easiest way to create an AVD is to use the graphical avd manager, which you launch from Eclipse by clicking Window -> AVD Manager.

  • Now Go to Android Virtual Device Manager.


  • Now Click on New button or Select Device Definitions->Create AVD option.

  • Fill the required details like target,Internal storage and sd card details etc.
  • After it click on OK button. 


  • A new AVD has been created with the given specification and Close the Android SDK and AVD Manager.
  •  Now you have successfully created AVD you are ready to test your application.
  • By hitting the start button and after selecting avd,you have to wait for some moment,because avd takes some second in start-up process.  
  • Finally you will see the similar picture of avd.


How to setup android developing environment

OverView:

In this tutorial we are showing that how to setup android developing environment with two different approach,One approach is very simple in which we only need to download a ADT Bundle,that not require any additional installation or setup.Other approach is also good but it requires a bit effort in setup.Actually before starting any android app we need a developing environment that provides us the API libraries and developer tools necessary to build, test, and debug apps for Android.

ADT Bundle(Android Developer Tools): 

If you're a new Android developer, we recommend you download the ADT Bundle to quickly start developing apps. It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.

With a single download, the ADT Bundle from ADT Bundle Download includes everything you need to begin developing apps likes:


  • Eclipse + ADT plugin
  • Android SDK Tools
  • Android Platform-tools
  • The latest Android platform
  • The latest Android system image for the emulator

So lets get started with your first basic setup for Android development.Go to your download folder where you saved your download,Extract the downloaded folder and now you will see the two folder's there one is eclipse and other is sdk folder,hit the eclipse folder and start your eclipse.

Once Eclipse Start the check for Android SDK Manager update.

Go to Window -> Android SDK Manager ->Check all Update available checkbox->Install packages


Note:- You need to have latest JDK installed in your system. If not present download latest version of JDK from JDK download .

Android Application Components

Application components are the essential building blocks of an Android application. These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each component of the application and how they interact.

There are following four main components that can be used within an Android application: 

Activities

                       An activity represents a single screen with a user interface. For example, an email application might have one activity that shows a list of new emails, another activity to compose an email, and another activity for reading emails. If an application has more than one activity, then one of them should be marked as the activity that is presented when the application is launched.

 An activity is implemented as a subclass of Activity class as follows:


public class MainActivity extends Activity { 
 
  } 

Services  

                        A service is a component that runs in the background to perform long-running operations. For example, a service might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user interaction with an activity.

A service is implemented as a subclass of Service class as follows:

public class MainActivity extends Service { 
 
  }


Broadcast Receivers

                         Broadcast Receivers simply respond to broadcast messages from other applications or from the system. For example, applications can also initiate broadcasts to let other applications know that some data has been downloaded to the device and is available for them to use, so this is broadcast receiver who will intercept this communication and will initiate appropriate action.

A broadcast receiver is implemented as a subclass of BroadcastReceiver class and each message is broadcasted as an Intent object.


public class MainActivity extends BroadacastReceiver { 
 
  }

Content Providers

                           A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. The data may be stored in the file system, the database or somewhere else entirely.

A content provider is implemented as a subclass of ContentProvider class and must implement a standard set of APIs that enable other applications to perform transactions.


public class MainActivity extends ContentProvider { 
 
  }



Additional Components

Components

Description

Fragments Represents a behavior or a portion of user interface in an Activity.
Views UI elements that are drawn onscreen including buttons, lists forms etc.
Layouts View hierarchies that control screen format and appearance of the views.
Intents Messages wiring components together.
Resources External elements, such as strings, constants and drawables pictures.
Manifest Configuration file for the application.

Android Architecture

Android operating system is a stack of software components which is roughly divided into five sections and four main layers as shown below in the architecture diagram.



Linux kernel

At the bottom of the layers is Linux - Linux 2.6 with approximately 115 patches. This provides basic system functionality like process management, memory management, device management like camera, keypad, display etc. Also, the kernel handles all the things that Linux is really good at such as networking and a vast array of device drivers, which take the pain out of interfacing to peripheral hardware.


Libraries

On top of Linux kernel there is a set of libraries including open-source Web browser engine WebKit, well known library libc, SQLite database which is a useful repository for storage and sharing of application data, libraries to play and record audio and video, SSL libraries responsible for Internet security etc.

Android Runtime

This is the third section of the architecture and available on the second layer from the bottom. This section provides a key component called Dalvik Virtual Machine which is a kind of Java Virtual Machine specially designed and optimized for Android.

The Dalvik VM makes use of Linux core features like memory management and multi-threading, which is intrinsic in the Java language. The Dalvik VM enables every Android application to run in its own process, with its own instance of the Dalvik virtual machine.

The Android runtime also provides a set of core libraries which enable Android application developers to write Android applications using standard Java programming language.

Application Framework

The Application Framework layer provides many higher-level services to applications in the form of Java classes. Application developers are allowed to make use of these services in their applications.

Applications

You will find all the Android application at the top layer. You will write your application to be installed on this layer only. Examples of such applications are Contacts Books, Browser, Games etc.


Summary

A good Android development knowledge foundation requires an understanding of the overall architecture of Android. Android is implemented in the form of a software stack architecture consisting of a Linux kernel, a runtime environment and corresponding libraries, an application framework and a set of applications. Applications are predominantly written in Java and run within individual instances of the Dalvik virtual machine. The key goals of the Android architecture are performance and efficiency, both in application execution and in the implementation of reuse in application design





 

Wednesday, 6 August 2014

Start Learning Android Today


Android Introduction

Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java language byte code which later transforms into .dex format files.
Android gives you a world-class platform for creating apps and games for Android users everywhere, as well as an open marketplace for distributing to them instantly.
With a user interface based on direct manipulation, Android is designed primarily for touchscreen mobile devices such as smartphones and tablet computers, with specialized user interfaces for televisions (Android TV), cars (Android Auto), and wrist watches (Android Wear).

Key components of Android Architecture


Mainly Android Architecture have 4 key components:

  •  Linux Kernel
  •  Libraries
  •  Android Framework
  •  Android Applications


Advantage of Android

  • MultitaskingYups, Android phones can run many applications, you can quickly and seamlessly switch between apps and pick up whatever you were doing. Juggling multiple tasks at once on a mobile device has never been easier.It have simple and powerful SDK.

  • Ease of Notification Any SMS, Email, or even the latest articles from an RSS Reader, there will always be a notification on the Home Screen Android phone, do not miss the LED indicator is blinking, so you will not miss a single SMS, Email or even Misscall .

  • Easy access to thousands of applications via the Google Android Android App MarketWhen you love to install applications or games, through Google’s Android App Market, Again can download applications for free. There are many thousands of applications and games that are ready for download on Android phones.

  • Phone options are diverse– Talk Android phone, it will feel ‘different’ than the IOS, if the IOS is limited to the iPhone from Apple, then Android is available on mobile phones from various manufacturers, from Sony Ericsson, Motorola, HTC to Samsung. And each handset manufacturer also presents an Android phone in the style of each, such as Motorola with its Motoblur, Sony Ericsson with its Timescape. So You can freely choose the Android phone in accordance with the ‘brand’ favorite.

  • Supporting platforms are – Linux, Mac Os, Windows.

  • Google Maniac – If you are a loyal user of Google services ranging from Gmail to Google Reader Android phone has integrated with Google services, so you can quickly check e-mail from Gmail. 


Disadvantages of Android 

Most Android phones require a simultaneous Internet connection alias continuously active, that means must be prepared to subscribe Again GPRS packet that suits your needs.



History Of Android

Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics. - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf
Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics. - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf











  • Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics.
  • Later Android apps were shifted to Mobiles.
  • After 2 years Google Bought the Android in 2005.
  • Again after 2 years i.e., in 2007 Google officially announced the development of Android OS.












  • Android is an Open Source and releases the code under the Apache License.
  • The features are going to be added from one Version to another Version.
  • - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf











  • Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics.
  • Later Android apps were shifted to Mobiles.
  • After 2 years Google Bought the Android in 2005.
  • Again after 2 years i.e., in 2007 Google officially announced the development of Android OS.












  • Android is an Open Source and releases the code under the Apache License.
  • The features are going to be added from one Version to another Version.
  • - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf











  • Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics.
  • Later Android apps were shifted to Mobiles.
  • After 2 years Google Bought the Android in 2005.
  • Again after 2 years i.e., in 2007 Google officially announced the development of Android OS.












  • Android is an Open Source and releases the code under the Apache License.
  • The features are going to be added from one Version to another Version.
  • - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf
    • Initially Android was developed for Televisions, game consoles and Digital Cameras and also in electronics.

    • Later Android apps were shifted to Mobiles.

    • After 2 years Google Bought the Android in 2005

    • Again after 2 years i.e., in 2007 Google officially announced the development of Android OS.

    • Android is an Open Source and releases the code under the Apache License.

    • The features are going to be added from one Version to another Version. 
     
    List of Android versions from Android Alpha to lollipop - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf
    List of Android versions from Android Alpha to lollipop - See more at: http://www.atoztricks.com/2014/02/android-versions-from-cupcake-to-lollipop.html#sthash.EfnYvtRE.dpuf
    List of Android versions from Android Alpha to lollipop





    Android  1.0                        A lpha
    Android 1.1                         B eta
    Actually API(Application level programming interface) starts from Android 1.5 i.e., from cupcake to lollipop. 

    Android 1.5                         C upCake
    Android 1.6                         D onut
    Android 2.0/2.1                   E clair
    Android 2.2                         F royo
    Android 2.3                         G inger Bread
    Android 3.0/3.1/3.2             H oneycomb
    Android 4.0    `                    I ce Cream Sandwich
    Android 4.1                         J elly Bean
    Android 4.4                         K it Kat
    Android 5.0                         L ollipop
    Android 6.0                         M arshmallow

                                             (Not released just announced which is not confirmed)