SlideShare a Scribd company logo
Android 5.0 Lollipop
local.ch
Android Lollipop: The developer's perspective
What’s New?
What's new
● Material Design
● Enhanced Notifications
● Concurrent documents in Overview
o Intent.FLAG_ACTIVITY_NEW_DOCUMENT
o ActivityManager.getAppTasks
What’s new
● Project Volta
● 3.1
o With Android Extension Pack
● Webview (updatable)
o WebAudio
Android Runtime Evolved - ART
● Ahead-of-time (AOT) compilation
● Improved garbage collection (GC)
o Less latency (2ms average)
● Separate heap for big assets (bitmaps)
● 64 bit
Dalvik vs Art
Dalvik ART
Uses Just-In-Time (JIT) approach, which
results in lower storage space consumption
but longer app load times
Uses Ahead-Of-Time (AOT) approach,
which compiles apps when they’re
installed, resulting in faster load times
and lower processor usage
Cache builds up over time, so boot times
are faster
Cache is built at first boot, hence
rebooting device takes significantly longer
Works better for lower internal storage
devices as space occupied is lesser
Consumes much more internal storage
space since it stores compiled apps in
addition to the APKs
Tools
● Variants: different versions of the app
(debug vs release or paid vs free)
● APK split combining native with common
code
Google Play Services
Google Play Services
● Android Wear Data API
o Messages API
o Assets API (binary blocks)
o DataItem (sync data among devices)
Google Play Services
● Address API
● OCR scanning of credit cards
● Google Wallet API
o Fragments support
● Google Analytics (with Tag manager)
Google Play Services
● Activity recognition:Walking, running
● Google Cast SDK
● Play Games
Google Play Services
● Security API
● Google Fit
● Drive API
Workplace
● Managed provision and unified view of apps
o Device Owner (device administrator)
● Screen pinning (lock app in the foreground)
● Screen sharing and capture
● Render PDFs as Bitmaps
Media
● Advanced camera capabilities
o RAW support!
● Audio devices: Low Latency audio input
● Media Browser and Media Session API
o Flexible playback control
Connectivity
● BLE Peripheral Device support
o Providing services and scan for services
● Multi Networking
o When you need a particular kind of network
o ConnectivityManager.requestNetwork
o Graceful handoff to another network
● … and a few new platforms
1. Android Wear
2. Android TV
3. Android Auto
Activity and Fragment Transitions
● Activity Transitions
o ActivityOptions.makeSceneTransitionAnimation
o With declared shared elements to make the
transitions smoother
o With the possibilities for enter and exit elements
o All this thanks to the new Render Thread
View Transitions
● Reveal
o Reveal content with a circular expanding mask
Animator reveal = ViewAnimationUtils.createCircularReveal(
viewToReveal, // The new View to reveal
centerX, // x co-ordinate to start the mask from
centerY, // y co-ordinate to start the mask from
startRadius, // radius of the starting mask
endRadius); // radius of the final mask
New APIs
Curved Motion
● Animation Curves
o New Interpolators
 fast-in-slow-out
 linear-out-slow-in (enter screen)
 fast-out-linear-in (exit screen)
o ObjectAnimator
Iconography
● State Animators
o StateListAnimator and AnimatedStateListDrawable
 ie. state of a view changes (checkbox)
o AnimatedVectorDrawable
● Touch feedback ripples
o By default on buttons, very simple otherwise
Android Lollipop: The developer's perspective
Android Lollipop: The developer's perspective
Colors
● colorPrimary (brand)
● colorAccent (controls)
● colorPrimaryDark (status bar)
● Palette API
○ Material Color Palettes
○ Swatches
Recycler Views
Generalization of the ListView (aka ListView2)
CardView
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Your card content -->
</android.support.v7.widget.CardView>
Toolbar
● Generalization of the ActionBar
o It can be placed anywhere
● … and it offers support for Custom Views
Support Library v7
● Theme.AppCompat
● RecyclerView
● CardView
● Toolbar
● Palette API
Project Volta
● Improve your battery life!
● JobScheduler API
o Start when charging / wifi / unmetered network/
idle / deadline or minimum delay
● Battery Historian
o adb shell dumpsys batterystats
Android Lollipop: The developer's perspective
Notifications
● Adapted for Material Design
● Accent Color fills a circle in icon
● Small icon badging
● … expanded views and custom remote views
● MediaStyle Template for media playback
Notifications
● Heads-up notifications
o Floating alerts that can be swiped away
● Lock Screen notifications
o PUBLIC, PRIVATE and SECRET notifications
 NotificationVisibility
Notifications metadata
● ...anotate them to prioritize them
● Notification categorizations
o call, message, alarm, social
o EXTRA_PEOPLE (uri or email…)
o when: fullscreenintent, prority,= vibrate/sound
notifications and wear
● What you get on your phone, on your watch
● Or extend: Notification.WearableExtender
Android TV
● Leanback UI
o LEANBACK_LAUNCHER
● @style/Theme.Leanback
Android Auto
● Audio apps
● Messaging apps
Resources
http://android-developers.blogspot.ch/2014/10/implementing-material-design-in-your.html
http://trickyandroid.com/simple-ripple-reveal-elevation-tutorial/
http://developer.android.com/about/versions/android-5.0.html
http://developer.android.com/about/versions/lollipop.html
Thanks!
@seviu
sebastian@iphonso.com
ch.linkedin.com/in/seviu
● Presentation available:
o http://goo.gl/hudvPx

More Related Content

PDF
gtkgst video in your widgets!
PDF
Convert Your Legacy OpenGL Code to Modern OpenGL with Qt
 
PPTX
Google kubernetes Engine with Google CI/CD Implementation
PPTX
Open gl introduction
PDF
Google Cloud platform: GKE with CI/CD using CircleCI and Flux
PPTX
Get started with Kubernetes on GKE
PDF
Google Kubernetes Engine (GKE) deep dive
PDF
Google Kubernetes Engine Deep Dive Meetup
gtkgst video in your widgets!
Convert Your Legacy OpenGL Code to Modern OpenGL with Qt
 
Google kubernetes Engine with Google CI/CD Implementation
Open gl introduction
Google Cloud platform: GKE with CI/CD using CircleCI and Flux
Get started with Kubernetes on GKE
Google Kubernetes Engine (GKE) deep dive
Google Kubernetes Engine Deep Dive Meetup

What's hot (20)

PPTX
Kubernetes & Google Kubernetes Engine (GKE)
PDF
Meet Qt Canada
 
PDF
Putting the Fun into Functioning CI/CD with JHipster
PDF
State of the Art OpenGL and Qt
 
PPTX
MicroService architecture_&_Kubernetes
PDF
Introduction to Qt Creator
 
PDF
Migrating from Photon to Qt
PDF
Qt for beginners part 2 widgets
 
PPTX
Qt 6.2 lts vs. qt 5.15 the big feature parity comparison
 
PPTX
Qt for beginners part 5 ask the experts
 
PDF
Best Practices in Qt Quick/QML - Part 3
 
PDF
Graphics Programming OpenGL & GLUT in Code::Blocks
PDF
Software Development Best Practices: Separating UI from Business Logic
 
PDF
HTML5 Apps on AGL Platform with the Web Application Manager (Automotive Grade...
ODP
Kubernetes best practices.odf
PDF
So I Downloaded Qt, Now What?
PPTX
OpenGL Fixed Function to Shaders - Porting a fixed function application to “m...
 
PDF
CD, docker and kubernetes
PDF
WPE: Current Status and Future (Web Engines Hackfest 2018)
PPTX
Introduction to Qt
Kubernetes & Google Kubernetes Engine (GKE)
Meet Qt Canada
 
Putting the Fun into Functioning CI/CD with JHipster
State of the Art OpenGL and Qt
 
MicroService architecture_&_Kubernetes
Introduction to Qt Creator
 
Migrating from Photon to Qt
Qt for beginners part 2 widgets
 
Qt 6.2 lts vs. qt 5.15 the big feature parity comparison
 
Qt for beginners part 5 ask the experts
 
Best Practices in Qt Quick/QML - Part 3
 
Graphics Programming OpenGL & GLUT in Code::Blocks
Software Development Best Practices: Separating UI from Business Logic
 
HTML5 Apps on AGL Platform with the Web Application Manager (Automotive Grade...
Kubernetes best practices.odf
So I Downloaded Qt, Now What?
OpenGL Fixed Function to Shaders - Porting a fixed function application to “m...
 
CD, docker and kubernetes
WPE: Current Status and Future (Web Engines Hackfest 2018)
Introduction to Qt
Ad

Viewers also liked (20)

PPTX
Android lollipop for developers
PDF
Android Marsh mellow
PPTX
The marsh mallow
PDF
The App Developer's Guide to Android Lollipop
PDF
Javascript
PDF
Nonprofit newsletters new
PDF
Auxiliares B O M B A R D 2011
PPTX
Portfolio de artisca
PDF
Sobre Las Redes Sociales Y El Social Media
PPT
Enoturismo bio bio
PDF
Catalogo mjm Rieles electricos
PDF
Presentació del Voluntariat per la llengua (Agost 2014)
ZIP
Abre el Ojo Nº 13
PDF
Puntos de fe_id7
PDF
MS Visio 2003 Technical Edition - Scheda corso LEN
PPT
Indepth Information on the Post Foundation of Battle Creek
PDF
Eurosec'2008 christophe feltus
PPTX
Julius baer 2014 pucón
PPT
[DE] MoReq2 Roadshow 2008 | Ulrich Kampffmeyer | Records Management
PDF
2015 McKinney Information
Android lollipop for developers
Android Marsh mellow
The marsh mallow
The App Developer's Guide to Android Lollipop
Javascript
Nonprofit newsletters new
Auxiliares B O M B A R D 2011
Portfolio de artisca
Sobre Las Redes Sociales Y El Social Media
Enoturismo bio bio
Catalogo mjm Rieles electricos
Presentació del Voluntariat per la llengua (Agost 2014)
Abre el Ojo Nº 13
Puntos de fe_id7
MS Visio 2003 Technical Edition - Scheda corso LEN
Indepth Information on the Post Foundation of Battle Creek
Eurosec'2008 christophe feltus
Julius baer 2014 pucón
[DE] MoReq2 Roadshow 2008 | Ulrich Kampffmeyer | Records Management
2015 McKinney Information
Ad

Similar to Android Lollipop: The developer's perspective (20)

PDF
What's new in Android Lollipop
PPTX
Android L and So Much More Webinar Slides
PPTX
Android L and Wear overview
PDF
Google I/O 2014 Recap
PDF
Lick my Lollipop
PPTX
Google IO 2014 overview
PPTX
Google I/O 2019 - what's new in Android Q and Jetpack
PDF
Android Lollipop and Material Design
PDF
Android development first steps
PDF
Android development - the basics, MFF UK, 2013
PDF
Android development - the basics, MFF UK, 2014
PDF
What's new in android 4.4 - Romain Guy & Chet Haase
PDF
Android development - the basics, MFF UK, 2012
PDF
Android Lollipop
PDF
What's new in Android Pie
PPTX
Introduction to ICS
PPTX
Android Performance Tips & Tricks
PPTX
Сергей Жук "Android Performance Tips & Tricks"
PPTX
mobile development with androiddfdgdfhdgfdhf.pptx
PDF
Android Development 201
What's new in Android Lollipop
Android L and So Much More Webinar Slides
Android L and Wear overview
Google I/O 2014 Recap
Lick my Lollipop
Google IO 2014 overview
Google I/O 2019 - what's new in Android Q and Jetpack
Android Lollipop and Material Design
Android development first steps
Android development - the basics, MFF UK, 2013
Android development - the basics, MFF UK, 2014
What's new in android 4.4 - Romain Guy & Chet Haase
Android development - the basics, MFF UK, 2012
Android Lollipop
What's new in Android Pie
Introduction to ICS
Android Performance Tips & Tricks
Сергей Жук "Android Performance Tips & Tricks"
mobile development with androiddfdgdfhdgfdhf.pptx
Android Development 201

Recently uploaded (20)

PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PPT on Performance Review to get promotions
PPTX
Lecture Notes Electrical Wiring System Components
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Construction Project Organization Group 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
573137875-Attendance-Management-System-original
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Welding lecture in detail for understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
bas. eng. economics group 4 presentation 1.pptx
Digital Logic Computer Design lecture notes
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Embodied AI: Ushering in the Next Era of Intelligent Systems
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT on Performance Review to get promotions
Lecture Notes Electrical Wiring System Components
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
additive manufacturing of ss316l using mig welding
Construction Project Organization Group 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
573137875-Attendance-Management-System-original
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Welding lecture in detail for understanding

Android Lollipop: The developer's perspective

Editor's Notes

  • #5: The material theme View shadows The RecyclerView widget Drawable animation and styling effects Material design animation and activity transition effects Animators for view properties based on the state of the view Customizable UI widgets and app bars with color palettes that you control Animated and non-animated drawables based on XML vector graphicsLorica will talk more about it Lock screens can now display notifications Visibility Private Visibility Public Visibility Secret Show not only one activity in the list of tasks but several (FLAG_ACTIVITY_NEW_DOCUMENT)
  • #6: Ahead of Time Compilation, better GC, improved debugging Chromium M37 PermissionRequest for camera and mic onShowFileChooser
  • #15: manually or programatically with StartLockTask’
  • #16: uncompressed YUV capture at full 8 Megapixel resolution at 30 FPS. You can also capture raw sensor data and control parameters such as exposure time, ISO sensitivity, and frame duration, on a per-frame basis. Lower input device latency
  • #17: Android devices can now function in Bluetooth Low Energy (BLE) peripheral mode. Apps can use this capability to broadcast their presence to nearby devices Apps can dynamically request networks based on capabilities such as metered or unmetered.