Paris, March 24th 2015
Android Introduction
Basic concepts to understand Android applications
Slide 2
Slide 2 text
Here is the
legend or source
Outline
• Make-up of an app
• Android ecosystem
• A bit of design
Android Introduction
2015 •
Slide 3
Slide 3 text
Android Introduction
2015 •
Activities
• Necessary to display content on screen
• Takes the full screen (except status bar
and virtual buttons)
• Should be : one activity = one user
action (read, write, search, …)
Android Introduction
2015 •
Intents
• Used to call new components (like Activities)
• Two types of intent :
• Explicit
• Implicit
new Intent(context, DiveCreateVisibilityActivity.class);
new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
Slide 8
Slide 8 text
Android Introduction
2015 •
Implicit intents
• If several applications can answer the
intent, a picker asks the one the user
wants to use
Android Introduction
2015 •
Services
• Background component
• Not linked to an activity : can survive after the
leaves the app, across activities, …
• Communication with Activities through Intents
• Uses :
• Background sync
• Music
• Heavy calculations
Slide 11
Slide 11 text
Android Introduction
2015 •
Broadcasts
• Intents sent at the system level for all
apps to listen
• Multiple applications can be triggered
by the same broadcast (vs implicit
Intent)
• Examples :
• ACTION_BOOT_COMPLETED
• ACTION_SHUTDOWN
• ACTION_POWER_CONNECTED
• Push
Slide 12
Slide 12 text
Android Introduction
2015 •
Content Providers
• Abstraction for access to data
(generally : database)
• Can work across applications
• Examples :
• Contacts
• Calendar
Android Introduction
2015 •
Permissions
• Required (and shown) before installation
(vs iOS)
• Required for anything (> 150) :
• Internet
• Location
• Storage
• Battery stats
• Bluetooth, NFC, Sensors
• Acces and modify user data
• Possible to create new permissions
2015 •
Navigation Drawer
Material Design (dev)
https://github.com/
mikepenz/MaterialDrawer
Slide 36
Slide 36 text
2015 •
Dialogs : AppCompatDialog
Material Design (dev)
Slide 37
Slide 37 text
2015 •
Bottom sheets
Material Design (dev)
https://github.com/
soarcn/BottomSheet
Slide 38
Slide 38 text
Android Introduction
2015 •
Up vs Back Navigation
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
Android Introduction
2015 •
Up vs Back Navigation
Slide 41
Slide 41 text
Android Introduction
2015 •
Up vs Back Navigation
Slide 42
Slide 42 text
Android Introduction
2015 •
Up vs Back Navigation
Slide 43
Slide 43 text
Android Introduction
2015 •
Notifications
Slide 44
Slide 44 text
Android Introduction
2015 •
Notifications
Slide 45
Slide 45 text
Android Introduction
2015 •
Notifications
Slide 46
Slide 46 text
Android Introduction
2015 •
Notifications
Slide 47
Slide 47 text
Android Introduction
2015 •
Notifications
Slide 48
Slide 48 text
I/O Recap
2014 •
Material design
Slide 49
Slide 49 text
Nom de la présentation
2012 •
Material
design
Cross platform design:
phones, tablets, laptops, web
Metaphor: paper and ink
Animations and transitions
Shadows
Vivid colors
Ripples
Slide 50
Slide 50 text
I/O Recap
2014 •
Topics
Android Wear Android Auto
Android TV