Top Banner
Google I/O Extended Lagos ’16 2016 moyinoluwa Moyinoluwa ADEYEMI Android - What’s new?
26

Android - What's new?

Jan 06, 2017

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Android -  What's new?

Google I/O Extended Lagos ’16 2016moyinoluwa Moyinoluwa ADEYEMI

Android - What’s new?

Page 2: Android -  What's new?

https://ng.linkedin.com/in/moyinoluwa@moyheen

@moyheen

Moyinoluwa AdeyemiSoftware Engineer, GDG Lagos Co-organizer

Page 3: Android -  What's new?

Android - What’s new for Nigerian Developers?

What if the topic was...

Page 4: Android -  What's new?

Android - What’s new for Nigerian Developers?

#IO16

Developers

Users

Page 5: Android -  What's new?

#IO16

Developers

Users

Page 6: Android -  What's new?

Related Google I/O sessionAndroid battery and memory optimizations(https://goo.gl/cVDwub)

Doze mode (M vs. N)

Page 7: Android -  What's new?

Doze mode (M vs. N)

Android battery and memory optimizations Android battery and memory optimizations

Page 8: Android -  What's new?

Android battery and memory optimizationsBattery life and MemoryReduce - Reduce all background activity

Defer - Defer background activities to when device is on charger

Coalesce - If it can’t be deferred, coalesce it with other background activity to avoid overhead

Page 9: Android -  What's new?

Android Battery and Memory optimizationsAlternatively,

Use the Android JobScheduler API on L+ devicesor the Firebase JobDispatcher library on Pre-L devices

Page 10: Android -  What's new?

Android JobScheduler

An API for scheduling various types of jobs against the framework that will be executed in your application’s own process

Page 11: Android -  What's new?

Firebase JobDispatcherGCM Network Manager === Firebase JobDispatcher

A new open source SDK for scheduling and executing background activity on Android. Coming soon for iOS.

Available on devices with Google Play Services installed

Page 12: Android -  What's new?

Getting started with JobScheduler/JobDispatcher

I/O Codelabg.co/codelabs/jobscheduler

Page 13: Android -  What's new?

Battery Historian

Tool for monitoring all impact on the battery

github.com/google/battery-historian

Page 14: Android -  What's new?

Related Google I/O sessionsLean and fast - putting your app on a diet(https://goo.gl/Yro9EZ)Image compression for Android Developers(https://goo.gl/bDs011)

Putting your app on a diet

Page 15: Android -  What's new?

Components of an APK

Lean and Fast - putting your app on a diet

Page 16: Android -  What's new?

Images...PNGJPGWebP - A modern image format that provides superior lossless and lossy compression for images on the web. Get it here: https://developers.google.com/speed/webp/download

VectorDrawable - Creates a drawable based on an XML vector graphic

Page 17: Android -  What's new?

Optimize images<4.0: Use webp images instead of jpg and transparent pngs

>4.2.1: Use webp images instead of pngs

>5.0: Use VectorDrawable

<5.0: Use VectorDrawableCompat

Page 18: Android -  What's new?

Other options...android { ………

release {minifyEnabled trueshrinkResources truecruncherEnabled falseproguardFiles

getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’

}}

Page 19: Android -  What's new?

Other options...android { ………

release {minifyEnabled trueshrinkResources truecruncherEnabled falseproguardFiles

getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’

}}

Page 20: Android -  What's new?

Other options...android { ………

release {minifyEnabled trueshrinkResources truecruncherEnabled falseproguardFiles

getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’

}}

Page 21: Android -  What's new?

APK > 100MB

Have multiple APKs

Page 22: Android -  What's new?

#IO16

Users Developers

Page 23: Android -  What's new?

Related Google I/O sessionsWhat’s new in Android(https://goo.gl/7BsfNj)What’s new in Android development tools(https://goo.gl/ldgHVG)

Development tools

Page 24: Android -  What's new?

Development toolsLayout EditorConstraint LayoutLayout InspectorFirebase PluginEnhanced code analysisSamples browserEspresso test recorderAPK Analyzer...

Page 26: Android -  What's new?

thankyou