SlideShare a Scribd company logo
1 of 21
Introduction to Android
Prepared By: Ms. Sokngim Sa
Content
Introduction to Android
- What is Android
- Android Version
- Android Architecture
- Android Components
- Android Application Structure
Understand:
- Background of Android
- The process of Android Application
- Four main components in
Android Application
- Where to store each kind of resource
1.1.What is Android?
- Android is an operating system based on the Linux kernel.
- Android is developed in the Android open Source Project (AOSP). This
project is lead by Google.
- The Android Operating system can be divided into the four areas such as
Application, Application Framework, Libraries or Runtime, Linux Kernel.
- For an Android application Developer works with Application and Application
Framework to create new Android application.
1.2. Android versions
- The Android operating system is published in different versions such as
More Details: https://www.android.com/history/#/donut
1.3. Android Architecture
1.3. Android Architecture
- Applications - Contains the applications such as Browser, Camera,
Gallery, Music and Phone.
- Application framework - An API which allows high-level interactions
with the Android system.
- Libraries and runtime - The libraries for many common framework
function, like graphic rendering, data storage, web browsing, and the
Android runtime - the core java libraries for running Android
application.
- Linux kernel - Communication layer for the underlying hardware.
1.4. Application Components
- Application components:
- are the essential building blocks of an Android Application.
- uses <application> … </application> in AndroidManifest.xml to describes
each component of the application and how they interact.
- There are 4 Components of Application:
- Activity
- Service
- Broadcast receivers (receiver)
1.4. Android Component - Activity
- An activity is the visual representation of an Android application.
- An Android application can have several activities.
- Activities use views and fragments to create their user interface and to interact
with the user.public class MainActivity extends Activity {
}
or
public class MainActivity extends AppCompatActivity{
}
1.4. Application Component - Service
- A service performs tasks without
providing an user interface.
- It can communicate with other
Android components and send
notifications to the user. For
example, a broadcast receiver can
notify the user via the notification
framework in Android.
1.4. Application Component - Broadcast Receiver
- A receiver can be registered to
listen to system messages and
intents. A receiver gets notified by
the Android system if the specified
event occurs.
- For example, Battery is getting low.
1.4. Application Component - Content Provider
- A provider defines a structured interface to application data. A provider can
be used for accessing data within one application, but can also be used to
share data with other applications.
- Android contains an SQLite database which is frequently used in conjunction
with a content provider. The SQLite database would store the data, which
would be accessed via the provider.
1.5. Android Developer Tools
- The Android development tooling:
- converts these files(Java and Resource) into an Android application
- compile, package, deploy and start application which are developed
- necessary tools need - the Android Software Development Kit (Android
SDK) and the Gradle tooling
- The Android SDK: contains the Android debug bridge (adb) - allows
managing the device (virtual or real Android device) or debugging your
application.
1.6 System requirements
- Microsoft Windows 7/8/10 (32-bit or 64-bit)
- 2 GB RAM minimum, 8 GB RAM recommended
- 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE +
1.5 GB for Android SDK and emulator system image)
- 1280 x 800 minimum screen resolution
- JDK 8
- For accelerated emulator: 64-bit operating system and Intel processor with
support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit
functionality
1.7. Download and Installation
- Install JDK + Set path environment to JAVA_HOME
- Download Android Studio : http://developer.android.com/sdk/index.html
- Installation Android Studio follow the wizard
1.8 Managing the Android API Level
- The Android SDK manager allows you to install and delete specific Android OS
version.
- Select Tools -> Android -> SDK Manager or the SDK Manager icon in the
toolbar -> It will show the api install or delete or update
1.5. Android
Structure
5.1 Resource files
- Resource files must be placed in the /res directory of your application in a
predefined sub-folder.
- You can also append additional qualifiers to the folder name - resource
qualifiers .
- These qualifiers indicate that the related resources should be used for special
device configurations. For example, you can specify that a layout file is only
valid for a certain screen size.
The Supported resources

More Related Content

Similar to 01 introduction to android

Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewAhsanul Karim
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1Kainda Kiniel Daka
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfAbdullahMunir32
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & ComponentsAkash Bisariya
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorialilias ahmed
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java DevelopersMike Wolfson
 
Hello android world
Hello android worldHello android world
Hello android worldeleksdev
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architectureDilip Singh
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar reportdgpune
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
 

Similar to 01 introduction to android (20)

Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick Overview
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 
Android app development India
Android app development IndiaAndroid app development India
Android app development India
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdf
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & Components
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Android session-1-sajib
Android session-1-sajibAndroid session-1-sajib
Android session-1-sajib
 
IntroToAndroid
IntroToAndroidIntroToAndroid
IntroToAndroid
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java Developers
 
Aptech Apps
Aptech Apps Aptech Apps
Aptech Apps
 
Hello android world
Hello android worldHello android world
Hello android world
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar report
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 

More from Sokngim Sa

How to decompile apk
How to decompile apkHow to decompile apk
How to decompile apkSokngim Sa
 
04 activities and activity life cycle
04 activities and activity life cycle04 activities and activity life cycle
04 activities and activity life cycleSokngim Sa
 
02 getting start with android app development
02 getting start with android app development02 getting start with android app development
02 getting start with android app developmentSokngim Sa
 
Add eclipse project with git lab
Add eclipse project with git labAdd eclipse project with git lab
Add eclipse project with git labSokngim Sa
 
Transmitting network data using volley(14 09-16)
Transmitting network data using volley(14 09-16)Transmitting network data using volley(14 09-16)
Transmitting network data using volley(14 09-16)Sokngim Sa
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control StructureSokngim Sa
 

More from Sokngim Sa (8)

06 UI Layout
06 UI Layout06 UI Layout
06 UI Layout
 
How to decompile apk
How to decompile apkHow to decompile apk
How to decompile apk
 
05 intent
05 intent05 intent
05 intent
 
04 activities and activity life cycle
04 activities and activity life cycle04 activities and activity life cycle
04 activities and activity life cycle
 
02 getting start with android app development
02 getting start with android app development02 getting start with android app development
02 getting start with android app development
 
Add eclipse project with git lab
Add eclipse project with git labAdd eclipse project with git lab
Add eclipse project with git lab
 
Transmitting network data using volley(14 09-16)
Transmitting network data using volley(14 09-16)Transmitting network data using volley(14 09-16)
Transmitting network data using volley(14 09-16)
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control Structure
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

01 introduction to android

  • 1. Introduction to Android Prepared By: Ms. Sokngim Sa
  • 2. Content Introduction to Android - What is Android - Android Version - Android Architecture - Android Components - Android Application Structure Understand: - Background of Android - The process of Android Application - Four main components in Android Application - Where to store each kind of resource
  • 3. 1.1.What is Android? - Android is an operating system based on the Linux kernel. - Android is developed in the Android open Source Project (AOSP). This project is lead by Google. - The Android Operating system can be divided into the four areas such as Application, Application Framework, Libraries or Runtime, Linux Kernel. - For an Android application Developer works with Application and Application Framework to create new Android application.
  • 4. 1.2. Android versions - The Android operating system is published in different versions such as More Details: https://www.android.com/history/#/donut
  • 6. 1.3. Android Architecture - Applications - Contains the applications such as Browser, Camera, Gallery, Music and Phone. - Application framework - An API which allows high-level interactions with the Android system. - Libraries and runtime - The libraries for many common framework function, like graphic rendering, data storage, web browsing, and the Android runtime - the core java libraries for running Android application. - Linux kernel - Communication layer for the underlying hardware.
  • 7. 1.4. Application Components - Application components: - are the essential building blocks of an Android Application. - uses <application> … </application> in AndroidManifest.xml to describes each component of the application and how they interact. - There are 4 Components of Application: - Activity - Service - Broadcast receivers (receiver)
  • 8. 1.4. Android Component - Activity - An activity is the visual representation of an Android application. - An Android application can have several activities. - Activities use views and fragments to create their user interface and to interact with the user.public class MainActivity extends Activity { } or public class MainActivity extends AppCompatActivity{ }
  • 9.
  • 10. 1.4. Application Component - Service - A service performs tasks without providing an user interface. - It can communicate with other Android components and send notifications to the user. For example, a broadcast receiver can notify the user via the notification framework in Android.
  • 11. 1.4. Application Component - Broadcast Receiver - A receiver can be registered to listen to system messages and intents. A receiver gets notified by the Android system if the specified event occurs. - For example, Battery is getting low.
  • 12. 1.4. Application Component - Content Provider - A provider defines a structured interface to application data. A provider can be used for accessing data within one application, but can also be used to share data with other applications. - Android contains an SQLite database which is frequently used in conjunction with a content provider. The SQLite database would store the data, which would be accessed via the provider.
  • 13.
  • 14.
  • 15. 1.5. Android Developer Tools - The Android development tooling: - converts these files(Java and Resource) into an Android application - compile, package, deploy and start application which are developed - necessary tools need - the Android Software Development Kit (Android SDK) and the Gradle tooling - The Android SDK: contains the Android debug bridge (adb) - allows managing the device (virtual or real Android device) or debugging your application.
  • 16. 1.6 System requirements - Microsoft Windows 7/8/10 (32-bit or 64-bit) - 2 GB RAM minimum, 8 GB RAM recommended - 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image) - 1280 x 800 minimum screen resolution - JDK 8 - For accelerated emulator: 64-bit operating system and Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
  • 17. 1.7. Download and Installation - Install JDK + Set path environment to JAVA_HOME - Download Android Studio : http://developer.android.com/sdk/index.html - Installation Android Studio follow the wizard
  • 18. 1.8 Managing the Android API Level - The Android SDK manager allows you to install and delete specific Android OS version. - Select Tools -> Android -> SDK Manager or the SDK Manager icon in the toolbar -> It will show the api install or delete or update
  • 20. 5.1 Resource files - Resource files must be placed in the /res directory of your application in a predefined sub-folder. - You can also append additional qualifiers to the folder name - resource qualifiers . - These qualifiers indicate that the related resources should be used for special device configurations. For example, you can specify that a layout file is only valid for a certain screen size.

Editor's Notes

  1. http://www.vogella.com/tutorials/Android/article.html