Chapter 1
Chapter 1
Chapter 1
By
FAHAD ASLAM
MSCS From AIOU
Chapter 1
What Is Android?
Android Versions
Features of Android
Architecture of Android
Obtaining the Required Tools Android Studio
Android Development Tools (ADT)
Creating Android Virtual Devices (AVDs)
Creating Your First Android Application
Anatomy of an Android Application
What is Android
• Android is an OS based on Linux with a Java programming
interface. It is a comprehensive open source platform designed
for mobile devices.
• First beta version of Android Software Development Kit
(SDK) was released by Google in 2007 where as first
commercial version, Android 1.0, was released in September
2008.
• On June 27, 2012, at the Google I/O conference, Google
announced the next Android version, 4.1 Jelly Bean. Jelly
Bean is an incremental update, with the primary aim of
improving the user interface, both in terms of functionality and
performance.
Android Versions
Features of Android
Feature Description
Beautiful UI Android OS basic screen provides a beautiful and
intuitive user interface.
This XML file defines the layout for the activity's user interface (UI). It
contains a TextView element with the text "Hello, World!"
app > manifests > AndroidManifest.xml
The manifest file describes the fundamental characteristics of the app and
defines each of its components.
options window:
◦ Open the Settings app.
◦ If your device uses Android v8.0 or higher, select System. Otherwise,
proceed to the next step.
◦ Scroll to the bottom and select About phone.
◦ Scroll to the bottom and tap Build number seven times.
◦ Return to the previous screen, scroll to the bottom, and tap Developer
options.
◦ In the Developer options window, scroll down to find and enable USB
debugging.
Run the app on your device as follows:
In Android Studio, select your app from the run/debug
configurations drop-down menu in the toolbar.
In the toolbar, select the device that you want to run your app
on from the target device drop-down menu.
Run on an emulator
Run the app on an emulator as follows:
In Android Studio, create an Android Virtual Device
(AVD) that the emulator can use to install and run your app.
In the toolbar, select your app from the run/debug