1 android1.pptx
1 android1.pptx
Android is an open source and Linux-based operating system for mobile devices such as smart phones and tablet computers.
Android was developed by the open Handset Alliance, led by Google and other companies.
The history and versions of android are interesting to know. The code names of android ranges from A to J currently, such as
Aestro, Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwitch, Jelly Bean, KitKat and Lollipop.
Let's understand the android history in a sequence.
1) Initially, Andy Rubin founded Android Incorporation in Palo Alto, California, United States in October, 2003.
2) In 17th August 2005, Google acquired android Incorporation. Since then, it is in the subsidiary of Google Incorporation.
3) The key employees of Android Incorporation are Andy Rubin, Rich Miner, Chris White and Nick Sears.
4)Originally intended for camera but shifted to smart phones later because of low market for camera only.
5) Android is the nick name of Andy Rubin given by coworkers because of his love to robots.
6) In 2007, Google announces the development of android OS.
7) In 2008, HTC launched the first android mobile.
Android Architecture
1. Linux kernel
It is the heart of android architecture that exists at the root of android architecture. Linux kernel is responsible for device
drivers, power management, memory management, device management and resource access.
2. Native Libraries
On the top of linux kernel, their are Native libraries such as WebKit, OpenGL, FreeType, SQLite, Media, C runtime library (libc) etc
The WebKit library is responsible for browser support, SQLite is for database, FreeType for font support,
Media for playing and recording audio and video formats, OpenGL for 2D and 3D graphics development in Android applications.
3. Android Runtime
In android runtime, there are core libraries and DVM (Dalvik Virtual Machine) which is responsible to run android application.
DVM is like JVM but it is optimized for mobile devices. It consumes less memory and provides fast performance.
Fig: Architecture of Android
4. Android Framework
On the top of Native libraries and android runtime, there is android framework. Android framework includes Android API's
(Application Programming Interfaces) such as UI (User Interface), telephony, resources, locations, Content Providers (data) and
package managers. It provides a lot of classes and interfaces for android application development.
5. Applications
On the top of android framework, there are applications. All applications such as home, contact, settings, games, browsers are
using android framework that uses android runtime and libraries. Android runtime and native libraries are using linux kernel.
Android Core Building Blocks or components:
An android component is simply a piece of code that has a well defined life cycle e.g. Activity, Receiver, Service etc.
The core building blocks or fundamental components of android are activities, views, intents, services, content providers,
fragments and AndroidManifest.xml.
Activity:
An activity is a class that represents a single screen. In that way the activity is very similar to a window in the Windows
operating system. An Android app contains activities, meaning one or more screens.
View
A view is the UI element such as button, label, text field (TextView, EditText) etc. anything that you see is a view.
Intent
Intent is used to invoke components. It is mainly used to:
Start the service
Launch an activity
Display a web page
Display a list of contacts
Broadcast a message
Dial a phone call etc.
For example, you may write the following code to view the webpage.
Content Provider
Content Providers are used to share data between the applications.
Fragment
Fragments are like parts of activity. An activity can display one or more fragments on the screen at the same time.
AndroidManifest.xml
It contains information about activities, content providers, permissions etc.
Android Virtual Device (AVD)
It is used to test the android application without the need for mobile or tablet etc. It can be created in different configurations
to emulate different types of real devices.
Android Emulator
The Android emulator is an Android Virtual Device (AVD), which represents a specific Android device. We can use the Android
emulator as a target device to execute and test our Android application on our PC. The Android emulator provides almost all
the functionality of a real device. We can get the incoming phone calls and text messages. It also gives the location of the
device and simulates different network speeds. Android emulator simulates rotation and other hardware sensors. It accesses
the Google Play store, and much more
Kotlin JAVA is an Object Oriented Programming Language
KOTLIN is a cross platform, statically types, general developed by JAMES GOSLING and colleagues at SUN
purpose programming language with type inference. MICRO SYSTEMS in 1991.The language was initially called
KOTLIN is designed to interoperate fully with java but type OAK. It was developed as a full fledged programming
inference allows its syntax to be more concise. KOTLIN is language in which one can accomplish the same sorts of
sponsored by JetBrains and Google through the Kotlin tasks and solve the similar problems that one can do in
Foundation. other programming languages such as BASIC,C++ etc.
There are many differences in both these languages according to their features
Features Kotlin Java