SlideShare a Scribd company logo
Agenda
● Introduction
● Android Components overview
● Sample Application
● Android Software Stack
● Android Components detailed
– Activity, Service, Provider, Receiver
History of Android
• Android, Inc. – 2003
• Operating system for digital cameras
• Google Acquisition – 2005
• Open Handset Alliance – Nov 2007
–  Google, HTC, Sony and Samsung
– Qualcomm and Texas Instruments
•  HTC Dream - October 22, 2008
Android Application Components
Application Components
• Application components are the essential
building blocks of an Android
application.
Application components
● Activity
● Service
● Broadcast Receiver
● Content Provider
Application components
Activities
• An activity represents a single screen
with a user interface
• Example of Activities in Email app
– Email List
– Compose
– Read
Activities
Services
• A service is a component that runs in the
background
• A service does not provide a user
interface.
• Example : Music Player, Downloader
Services
Content Provider
• Content provider
– Allows to share data with other apps
•
Content Provider
Content Provider
Broadcast Receiver
●
Listener of System wide events.
●
Examples
– SMS received , Wifi / Bluetooth connected
– Battery Low, Device Rebooted
●
No UI
●
Lightweight ( < 10 seconds )
Intents
IntentsIntents
Intents are messages across components.
Like Hyperlinks on
the web
Intents
● Support interaction between components
– e.g. Start a new Activity
– Broadcast messages
● Intents : request for action to be performed
17
Types of Intents
MyApp
Activity1 Service1Intent ( myService.class )
OtherAppMyApp
Activity1 Activity2
Explicit Intent
Implicit IntentIntent ( “ACTION” )
Intents
Intents
start new Activity
● Dial a number
Intent intent = new Intent(Intent.ACTION_DIAL,
Uri.parse(“tel:97412345”));
● Launch a website
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(“http://www.google.com”));
Intents
start new Activity
● Launch another activity
Intent i = new Intent(this, SecondActivity.class)
startActivity(i)
Intent Filter
● Registers components as capable of receiving
Intents
● Matches intents to the component (Activity ,
Service, Receivers)
● Declared mostly in AndroidManifest.xml
Functional Android App
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<uses-permission />
<uses-sdk />
<application>
<activity>
</activity>
</application>
</manifest>
Application Manifest File
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout>
<TextView android:text="I am a TextView" />
<Button android:text="I am a Button" />
</LinearLayout>
XML Snippet
Preview
Layouts
• Linear Layout
• Relative Layout
• List View
• Grid View
Linear Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" >
<TextView android:text="I am a TextView" />
<Button android:text="I am a Button" />
</LinearLayout>
Linear Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation=“horizontal" >
<TextView android:text="I am a TextView" />
<Button android:text="I am a Button" />
</LinearLayout>
Layouts
Grid ViewList View
UI Widgets
Sample App
<Button android:id="@+id/my_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=“I am a Button"/>
Button myButton =(Button)findViewById(R.id.my_button);
Sample App
public void (View v)
{
// action
}
Add this in XML file
android:onClick="myMethod"
Sample App
● Extend this to create SecondActivity
● invoked on clicking the button
Inside the APK
● Compiled Java source
● Libraries
● XML files for UI, strings
● Resources – Images etc
● Android Manifest
Android Software Stack
● Kernel
● Libraries / Runtime
● Application Framework
● Applications
Android Software Stack
Linux kernel
• Android built on Linux 2.6 kernel
• Provides security, memory management,
process management, network stack,
and driver model
• Abstraction layer between hardware and
the software stack
Libraries
• A set of C/C++ libraries exposed to
developers through the application
framework
Application Framework
Application Framework
Applications
Summary
● Android Components
● Android Sample Program
● Activity, Services, Broadcast Receiver
● Intents
● Android Stack
Contact
arvindd@belimitless.co
http://belimitless.co

More Related Content

PDF
Ch5 intent broadcast receivers adapters and internet
PDF
Computer Systems
PDF
Thesis: Slicing of Java Programs using the Soot Framework (2006)
PDF
Fourier Transforms
PPTX
Hello android world
PDF
Introduction to Android Development
PDF
Android101
PPTX
Mobile application development
Ch5 intent broadcast receivers adapters and internet
Computer Systems
Thesis: Slicing of Java Programs using the Soot Framework (2006)
Fourier Transforms
Hello android world
Introduction to Android Development
Android101
Mobile application development

Similar to Yourstory Android Workshop (20)

PPTX
Android app fundamentals
PDF
Android Development Tutorial
PPTX
Lec-3-Mobile Application Development.pptx
PDF
04 programmation mobile - android - (db, receivers, services...)
PPTX
Modul 2.pptxhelllojobbigtufytfythjgjhbknkjlnlk
PPTX
Android Development Basics
PPT
Introduction to Android Development
PDF
Delegating user tasks in applications
PDF
Android development - the basics, FI MUNI, 2012
PPT
Best android classes in mumbai
PPT
introductiontoandroiddevelopment (2).ppt
PPTX
01. Introduction to Android_lecture1.pptx
PPTX
Android Mobile App Development basics PPT
PPTX
PPT
Mobile Application Development With Android
PPT
Android_Workshop
PPTX
Android components
PPT
Unit I- ANDROID OVERVIEW.ppt
PDF
Android Jumpstart Jfokus
PPTX
Data Transfer between activities and Database
Android app fundamentals
Android Development Tutorial
Lec-3-Mobile Application Development.pptx
04 programmation mobile - android - (db, receivers, services...)
Modul 2.pptxhelllojobbigtufytfythjgjhbknkjlnlk
Android Development Basics
Introduction to Android Development
Delegating user tasks in applications
Android development - the basics, FI MUNI, 2012
Best android classes in mumbai
introductiontoandroiddevelopment (2).ppt
01. Introduction to Android_lecture1.pptx
Android Mobile App Development basics PPT
Mobile Application Development With Android
Android_Workshop
Android components
Unit I- ANDROID OVERVIEW.ppt
Android Jumpstart Jfokus
Data Transfer between activities and Database
Ad

More from Arvind Devaraj (20)

PDF
Deep learning for NLP and Transformer
PDF
NLP using transformers
PDF
Nodejs presentation
PDF
Career hunt pitch
PDF
Career options for CS and IT students
PDF
Careerhunt ebook
PDF
Static Analysis of Computer programs
PDF
Hyperbook
PDF
Android High performance in GPU using opengles and renderscript
PDF
OpenGLES Android Graphics
PDF
Broadcast Receiver
PDF
AIDL - Android Interface Definition Language
PDF
NDK Programming in Android
PDF
Google Cloud Messaging
PDF
OpenGLES - Graphics Programming in Android
PPT
Operating system
PDF
Sorting (introduction)
PDF
Data structures (introduction)
PDF
Graphics programming in open gl
PDF
Signal Processing Introduction using Fourier Transforms
Deep learning for NLP and Transformer
NLP using transformers
Nodejs presentation
Career hunt pitch
Career options for CS and IT students
Careerhunt ebook
Static Analysis of Computer programs
Hyperbook
Android High performance in GPU using opengles and renderscript
OpenGLES Android Graphics
Broadcast Receiver
AIDL - Android Interface Definition Language
NDK Programming in Android
Google Cloud Messaging
OpenGLES - Graphics Programming in Android
Operating system
Sorting (introduction)
Data structures (introduction)
Graphics programming in open gl
Signal Processing Introduction using Fourier Transforms
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
System and Network Administraation Chapter 3
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
AI in Product Development-omnex systems
PPTX
ai tools demonstartion for schools and inter college
PDF
medical staffing services at VALiNTRY
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Introduction to Artificial Intelligence
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
wealthsignaloriginal-com-DS-text-... (1).pdf
top salesforce developer skills in 2025.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Design an Analysis of Algorithms II-SECS-1021-03
How Creative Agencies Leverage Project Management Software.pdf
Operating system designcfffgfgggggggvggggggggg
System and Network Administraation Chapter 3
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PTS Company Brochure 2025 (1).pdf.......
AI in Product Development-omnex systems
ai tools demonstartion for schools and inter college
medical staffing services at VALiNTRY
How to Choose the Right IT Partner for Your Business in Malaysia
Navsoft: AI-Powered Business Solutions & Custom Software Development
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
VVF-Customer-Presentation2025-Ver1.9.pptx
Understanding Forklifts - TECH EHS Solution
Introduction to Artificial Intelligence
2025 Textile ERP Trends: SAP, Odoo & Oracle

Yourstory Android Workshop