SlideShare uma empresa Scribd logo
1 de 18
Introduction to Android basics
What is Android
• Android is a software platform which includes an
operating system, middleware and key
applications.
• The operating system is based on Linux and it is
developed by Google (Open Handset Alliance).
• The developers write managed code in a Java-like
language that utilizes Google-developed Java
libraries but it does not support programs in
native code.
Architecture of an Android
Application Layer
• Highest Layer in the Architecture
• Built-in standard applications
• -Phone Dialer
• -Email
• -Contacts
• -Web Browser
• -Android Market
Framework Layer
• The most important part of the framework are as
follows:
• Activity Manager
• Resource Manager
• Location Manager
• Notification Manager
Difference Between Java and C#
Architecture for Android
Android Software Development
1. REQUIREMENTS:
• Knowledge of programming in Java
• Knowledge of XML
• Android SDK
• Eclipse IDE with Android Development Tools (ADT)
plug-in.
• Android powered smartphone (for testing purposes)
Tools required for developing android
app:
 aapt - Android Asset Packaging Tool
 Creates .apk-files which contain all the resources as well as the program
itself. Those ZIP-format based files can be transferred to and installed on an
Android phone or the emulator.
 adb – Android Debug Bridge
 The main purpose of this tool is to set up connections to a real Android
device or an Android emulator instance in order to transfer and install
(apk)-files on it. With adb the developer also has the possibility to remote
control the devices shell.
 dx – Dalvik
 The dx is used for merging and converting Java-Standard-ByteCode Classes
(*.class) into one single binary file (.dex) that can be executed by the Dalvik
VM. These .dex-files are subject to be put into an .apk-file together with
resource files.
Application Fundamentals
• Application Components
– Activities
– Services
– Broadcast Receivers
– Content Providers
• Intents
Activities
• An activity presents a visual user interface for
one focused endeavor the user can undertake.
• The visual content of the window is provided
by a hierarchy of views.
– objects derived from the base View class.
• A view hierarchy is placed within an activity's
window by the Activity.setContentView()
method.
Services
• A Service does not have a visual interface and
runs in the background.
• Each service extends the Service base class.
• It's possible to connect to an ongoing service
and communicate it through the interface
exposed by that service.
BroadcastReceiver
• A broadcast receiver receive and react to
broadcast announcements.
• All receivers extend the BroadcastReceiver
base class.
• Many broadcasts originate in system code.
• Broadcast receivers do not display a user
interface but they can start an activity or alert
user.
ContentPorvider
• A content provider makes a specific set of the
application's data available to other
applications.
• All content providers extends the
ContentProvider base class.
• Content Providers are accessed through
ContentResolver object.
• Content Providers and Content Resolvers
enable inter-process communication (IPC)
Intent
• Intents are Asynchronous messages used to convey a request or
message.
• An intent is an object of Intent class that holds the content of the
message.
• Activities, Services and Broadcast Receivers are activated through
Intents.
• Intent can contain
• Component name
• Action
• Data
• Category
• Extras
• Flags
Activity Lifecycle
• An activity has essentially three states
• Active or Running
• Paused
• Stopped
• Activity Lifetime
• Entire Lifetime [onCreate() to onDestroy()]
• Visible Lifetime [onStart() to onStop()]
• Foreground Lifetime [onResume() to onPause()]
• An implementation of any activity lifecycle method
should always first call the superclass version
• onCreate(Bundle): This is called when the 1st Activity Startsup
• onStart(): This indicates the activity is about to display to the user
• onResume(): This is called when the activity can start interacting
with the user
• onPause(): This runs when and activity about to go to the
background
• onStop(): This is called when the activity is no longer visible to the
user
• onDestroy(): This is call right before your activity is destroyed, if
memory is tight onDestroy may never be called (The system will
may terminate you process)
Introduction to android basics

Mais conteúdo relacionado

Mais procurados

Android Training - Part 2
Android Training - Part 2Android Training - Part 2
Android Training - Part 2
Tbldevelopment
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
Aleix Solé
 

Mais procurados (20)

01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android Overview
Android OverviewAndroid Overview
Android Overview
 
Android- Introduction for Beginners
Android- Introduction for BeginnersAndroid- Introduction for Beginners
Android- Introduction for Beginners
 
Android Seminar
Android SeminarAndroid Seminar
Android Seminar
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
 
Android Training - Part 2
Android Training - Part 2Android Training - Part 2
Android Training - Part 2
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Andriod_Intro
Andriod_IntroAndriod_Intro
Andriod_Intro
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Android Operating System Architecture
Android Operating System ArchitectureAndroid Operating System Architecture
Android Operating System Architecture
 
Andriod
Andriod Andriod
Andriod
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Get an Android tutorial for beginners
Get an Android tutorial for beginnersGet an Android tutorial for beginners
Get an Android tutorial for beginners
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Android the new Mobile Technoogy
Android the new Mobile TechnoogyAndroid the new Mobile Technoogy
Android the new Mobile Technoogy
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android primer
Android primerAndroid primer
Android primer
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 

Destaque

Cognitive architecture
Cognitive architectureCognitive architecture
Cognitive architecture
Hasam Panezai
 

Destaque (16)

Learn Android app development in easy steps
Learn Android app development in easy stepsLearn Android app development in easy steps
Learn Android app development in easy steps
 
Cognitive Vision - After the hype
Cognitive Vision - After the hypeCognitive Vision - After the hype
Cognitive Vision - After the hype
 
Basics of android
Basics of androidBasics of android
Basics of android
 
Android basics
Android basicsAndroid basics
Android basics
 
Basics of Android
Basics of Android Basics of Android
Basics of Android
 
Introduction to Android development - CEC ISQIP 2014
Introduction to Android development -  CEC ISQIP 2014Introduction to Android development -  CEC ISQIP 2014
Introduction to Android development - CEC ISQIP 2014
 
Android
AndroidAndroid
Android
 
Android Basics
Android BasicsAndroid Basics
Android Basics
 
Cognitive architecture
Cognitive architectureCognitive architecture
Cognitive architecture
 
Android Basics
Android BasicsAndroid Basics
Android Basics
 
Google Android
Google AndroidGoogle Android
Google Android
 
Android Basics
Android BasicsAndroid Basics
Android Basics
 
Android & Why Mobile Application Development
Android & Why Mobile Application DevelopmentAndroid & Why Mobile Application Development
Android & Why Mobile Application Development
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android ppt
Android pptAndroid ppt
Android ppt
 

Semelhante a Introduction to android basics

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
Boom Shukla
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
Joe Jacob
 
Android application development
Android application developmentAndroid application development
Android application development
slidesuren
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
Muhammad Sajid
 

Semelhante a Introduction to android basics (20)

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Synapseindia android apps overview
Synapseindia android apps overviewSynapseindia android apps overview
Synapseindia android apps overview
 
Introduction to Android Development and Security
Introduction to Android Development and SecurityIntroduction to Android Development and Security
Introduction to Android Development and Security
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
Android
Android Android
Android
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
 
Android OS and its Features
Android OS and its FeaturesAndroid OS and its Features
Android OS and its Features
 
Android 101
Android 101Android 101
Android 101
 
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
 
Android dev tips
Android dev tipsAndroid dev tips
Android dev tips
 
Unit I- ANDROID OVERVIEW.ppt
Unit I- ANDROID OVERVIEW.pptUnit I- ANDROID OVERVIEW.ppt
Unit I- ANDROID OVERVIEW.ppt
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
Learn Android at edureka!
Learn Android at edureka! Learn Android at edureka!
Learn Android at edureka!
 
Android Development Tutorial
Android Development TutorialAndroid Development Tutorial
Android Development Tutorial
 

Mais de Hasam Panezai (8)

cog arch
cog archcog arch
cog arch
 
Lecture application layer
Lecture application layerLecture application layer
Lecture application layer
 
To lec 03
To lec 03To lec 03
To lec 03
 
To lec 04
To lec 04To lec 04
To lec 04
 
Lecture 1 4
Lecture 1 4Lecture 1 4
Lecture 1 4
 
White box
White boxWhite box
White box
 
Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technology
 
Lecture (coa)
Lecture (coa)Lecture (coa)
Lecture (coa)
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Introduction to android basics

  • 2. What is Android • Android is a software platform which includes an operating system, middleware and key applications. • The operating system is based on Linux and it is developed by Google (Open Handset Alliance). • The developers write managed code in a Java-like language that utilizes Google-developed Java libraries but it does not support programs in native code.
  • 4. Application Layer • Highest Layer in the Architecture • Built-in standard applications • -Phone Dialer • -Email • -Contacts • -Web Browser • -Android Market
  • 5. Framework Layer • The most important part of the framework are as follows: • Activity Manager • Resource Manager • Location Manager • Notification Manager
  • 6. Difference Between Java and C# Architecture for Android
  • 7. Android Software Development 1. REQUIREMENTS: • Knowledge of programming in Java • Knowledge of XML • Android SDK • Eclipse IDE with Android Development Tools (ADT) plug-in. • Android powered smartphone (for testing purposes)
  • 8. Tools required for developing android app:  aapt - Android Asset Packaging Tool  Creates .apk-files which contain all the resources as well as the program itself. Those ZIP-format based files can be transferred to and installed on an Android phone or the emulator.  adb – Android Debug Bridge  The main purpose of this tool is to set up connections to a real Android device or an Android emulator instance in order to transfer and install (apk)-files on it. With adb the developer also has the possibility to remote control the devices shell.  dx – Dalvik  The dx is used for merging and converting Java-Standard-ByteCode Classes (*.class) into one single binary file (.dex) that can be executed by the Dalvik VM. These .dex-files are subject to be put into an .apk-file together with resource files.
  • 9. Application Fundamentals • Application Components – Activities – Services – Broadcast Receivers – Content Providers • Intents
  • 10. Activities • An activity presents a visual user interface for one focused endeavor the user can undertake. • The visual content of the window is provided by a hierarchy of views. – objects derived from the base View class. • A view hierarchy is placed within an activity's window by the Activity.setContentView() method.
  • 11. Services • A Service does not have a visual interface and runs in the background. • Each service extends the Service base class. • It's possible to connect to an ongoing service and communicate it through the interface exposed by that service.
  • 12. BroadcastReceiver • A broadcast receiver receive and react to broadcast announcements. • All receivers extend the BroadcastReceiver base class. • Many broadcasts originate in system code. • Broadcast receivers do not display a user interface but they can start an activity or alert user.
  • 13. ContentPorvider • A content provider makes a specific set of the application's data available to other applications. • All content providers extends the ContentProvider base class. • Content Providers are accessed through ContentResolver object. • Content Providers and Content Resolvers enable inter-process communication (IPC)
  • 14. Intent • Intents are Asynchronous messages used to convey a request or message. • An intent is an object of Intent class that holds the content of the message. • Activities, Services and Broadcast Receivers are activated through Intents. • Intent can contain • Component name • Action • Data • Category • Extras • Flags
  • 15. Activity Lifecycle • An activity has essentially three states • Active or Running • Paused • Stopped • Activity Lifetime • Entire Lifetime [onCreate() to onDestroy()] • Visible Lifetime [onStart() to onStop()] • Foreground Lifetime [onResume() to onPause()] • An implementation of any activity lifecycle method should always first call the superclass version
  • 16.
  • 17. • onCreate(Bundle): This is called when the 1st Activity Startsup • onStart(): This indicates the activity is about to display to the user • onResume(): This is called when the activity can start interacting with the user • onPause(): This runs when and activity about to go to the background • onStop(): This is called when the activity is no longer visible to the user • onDestroy(): This is call right before your activity is destroyed, if memory is tight onDestroy may never be called (The system will may terminate you process)