Android tutorial for beginners
Updated on Nov 24, 2022 | 7 min read | 6.2k views
Share:
For working professionals
For fresh graduates
More
Updated on Nov 24, 2022 | 7 min read | 6.2k views
Share:
Table of Contents
The Android mobile operating system (OS) is one of the most popular and extensively used smartphone OS globally. While the OS was initially created for mobiles and digital cameras by California-based company Android Inc., the company’s acquisition by Google in 2005 led to the release of Android as a mobile OS two years later.
Today, Android holds a 69.74% share of mobile OS worldwide, with a global user base of 2 billion. Android is user-friendly, provides ample room for customisation and has robust community support, making it a leading player in the mobile OS industry.
This Android tutorial will walk you through the fundamentals of the Android OS and give an overview of how to build an Android project.
Check out our free courses related to software development.
We’ll begin this Android tutorial for beginners by listing the features of Android that make it a powerful mobile operating system.
Kotlin is the official language for Android development, with over 60% of professional Android developers using it for writing Android apps. Before Kotlin, the official language for Android development was Java.
However, many other programming languages find use in Android development. Here’s the complete list:
Learn Software Development Courses online from the World’s top Universities. Earn Executive PG Programs, Advanced Certificate Programs or Masters Programs to fast-track your career.
Below, we have a list of the different Android versions released by Google since 2007.
Version | Release Date | Code Name |
Android 1.0 | September 23, 2008 | Apple Pie |
Android 1.1 | February 9, 2009 | Banana Bread |
Android 1.5 | April 27, 2009 | Cupcake |
Android 1.6 | September 15, 2009 | Donut |
Android 2.0 – 2.1 | October 23, 2009 | Eclair |
Android 2.2 – 2.2.3 | May 20, 2010 | Froyo |
Android 2.3 – 2.3.4 | December 6, 2010 | Gingerbread |
Android 3.0.x – 3.2.x | February 22, 2011 | Honeycomb |
Android 4.0 – 4.0.4 | October 18, 2011 | Ice Cream Sandwich |
Android 4.1 – 4.1.2 | July 9, 2012 | Jelly Bean |
Android 4.4 – 4.4.4 | October 31, 2013 | Kitkat |
Android 5.0 – 5.1 | November 4, 2014 | Lollipop |
Android 6.0 – 6.0.1 | October 2, 2015 | Marshmallow |
Android 7.0 – 7.1 | August 22, 2016 | Nougat |
Android 8.0 | August 21, 2017 | Oreo |
Android 9.0 | August 6, 2018 | Pie |
Android 10.0 | September 3, 2019 | Android Q |
Android 11.0 | September 8, 2020 | Android 11 |
Android 12.0 | October 4, 2021 | Android 12 |
Next, in this Android development tutorial, we will give an overview of the Android architecture.
The Android architecture consists of different components. The Linux Kernel supports the main functionalities of the operating system, and the Dalvik Virtual Machine (DVM) is the platform for running Android applications.
Here’s a detailed description of each component of the Android architecture:
Applications
Applications is the top layer of the Android framework comprising the pre-installed applications such as home, contacts, gallery, camera, settings, and third-party apps downloaded from Playstore. The applications layer runs within the Android runtime using the application framework’s services and classes.
Application Framework
The application framework provides the classes for creating Android applications. It also manages the user interface and application resources and provides a generic abstraction for hardware access. The application framework includes various services such as location, telephony, view system, notification manager, etc., for application development.
Platform Libraries
Android platform libraries have a host of C/C++ core libraries and Java-based libraries such as Media, Surface Manager, SQLite, OpenGL, Webkit, etc., to support Android development. Each library has a specific function. For example, the Media Library is for recording and playing audio and video formats, SQLite is for database support, etc.
Android Runtime
The Android runtime environment includes components like the Dalvik Virtual Machine (DVM) and core libraries. It forms the basis of the application framework and fuels the applications along with the core libraries. Like Java Virtual Machine (JVM), DVM is a register-based virtual machine designed and optimised to enable Android to run multiple instances efficiently. The core libraries help implement Android applications using Kotlin or Java programming languages.
Linux Kernel
At the heart of the Android architecture is the Linux Kernel managing all the drivers such as camera drivers, display drivers, audio drivers, Bluetooth drivers, etc. The drivers are required during the runtime. The Linux Kernel provides an abstraction layer between the device hardware and the rest of the stack and has features like memory management, process management, resource access, etc.
As part of this Android studio tutorial, we will now give an overview of how to create an Android project using Android Studio. Here are the steps:
3. Select Empty Activity in the Select a Project Template window and click Next. Select File > New > New Project if you already have a project opened.
4. Complete the following steps in the Configure Your Project window:
The Android Studio main window will appear after some processing time.
Next, review the important files.
app > java > com.example.myfirstapp > MainActivity – The system launches an instance of the Activity and loads its layout when you build and run the app.
app > manifests > AndroidManifest.xml – The manifest file defines each of the app’s components and its characteristics.
app > res > layout > activity_main.xml – The XML file determines the activity’s user interface layout and contains a TextView element with a text, say, “Hello World!”
Gradle Scripts > build.gradle – The project and app module each have their build.gradle file, used for controlling how the Gradle plugin builds the app.
Once you create the app, the next step is to run your Android app on an emulator or a real device.
upGrad’s Executive PG Programme in Software Development in association with IIIT Bangalore is a 13-month online programme specifically designed for working professionals.
Programme Highlights:
Apply now for a rewarding career in software development!
Get Free Consultation
By submitting, I accept the T&C and
Privacy Policy
India’s #1 Tech University
Executive PG Certification in AI-Powered Full Stack Development
77%
seats filled
Top Resources