SlideShare una empresa de Scribd logo
1 de 26
Google I/O Extended Lagos ’16
2016moyinoluwaMoyinoluwa ADEYEMI
Android - What’s new?
https://ng.linkedin.com/in/moyinoluwa
@moyheen
@moyheen
Moyinoluwa Adeyemi
Software Engineer, GDG
Lagos Co-organizer
Android - What’s new for
Nigerian Developers?
What if the topic was...
Android - What’s new for Nigerian Developers?
#IO16
DevelopersUsers
#IO16
DevelopersUsers
Related Google I/O session
Android battery and memory optimizations
(https://goo.gl/cVDwub)
Doze mode (M vs. N)
Doze mode (M vs. N)
Android battery and memory optimizations Android battery and memory optimizations
Android battery and memory optimizations
Battery life and Memory
Reduce - 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
Android Battery and Memory optimizations
Alternatively,
Use the Android JobScheduler API on L+ devices
or the Firebase JobDispatcher library on Pre-L devices
Android JobScheduler
An API for scheduling various types of jobs against the
framework that will be executed in your application’s
own process
Firebase JobDispatcher
GCM 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
Getting started with JobScheduler/JobDispatcher
I/O Codelab
g.co/codelabs/jobscheduler
Battery Historian
Tool for monitoring all impact on the battery
github.com/google/battery-historian
Related Google I/O sessions
Lean 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
Components of an APK
Lean and Fast - putting your app on a diet
Images...
PNG
JPG
WebP - 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
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
Other options...
android {
………
release {
minifyEnabled true
shrinkResources true
cruncherEnabled false
proguardFiles getDefaultProguardFile(‘proguard-
android.txt’), ‘proguard-rules.pro’
}
}
Other options...
android {
………
release {
minifyEnabled true
shrinkResources true
cruncherEnabled false
proguardFiles getDefaultProguardFile(‘proguard-
android.txt’), ‘proguard-rules.pro’
}
}
Other options...
android {
………
release {
minifyEnabled true
shrinkResources true
cruncherEnabled false
proguardFiles getDefaultProguardFile(‘proguard-
android.txt’), ‘proguard-rules.pro’
}
}
APK > 100MB
Have multiple APKs
#IO16
Users Developers
Related Google I/O sessions
What’s new in Android
(https://goo.gl/7BsfNj)
What’s new in Android development tools
(https://goo.gl/ldgHVG)
Development tools
Development tools
Layout Editor
Constraint Layout
Layout Inspector
Firebase Plugin
Enhanced code analysis
Samples browser
Espresso test recorder
APK Analyzer...
Getting started
Install Android 2.2 preview 3: https://goo.gl/CiWjqy
Helpful articles on ConstraintLayout
http://android-developers.blogspot.com.ng/2016/05/android-studio-
22-preview-new-ui.html
http://segunfamisa.com/posts/constraint-layout-in-android
http://riggaroo.co.za/constraintlayout-101-new-layout-builder-
android-studio/
https://medium.com/google-developer-experts/first-impressions-of-
androids-new-constraintlayout-c6d081b2bc2a
thank
you

Más contenido relacionado

La actualidad más candente

Geo Tech Talk (2011/3/7)
Geo Tech Talk (2011/3/7)Geo Tech Talk (2011/3/7)
Geo Tech Talk (2011/3/7)Yukio Andoh
 
Google I/O 2016 Key notes
Google I/O 2016 Key notesGoogle I/O 2016 Key notes
Google I/O 2016 Key notesmayur akabari
 
WebGL demos showcase
WebGL demos showcaseWebGL demos showcase
WebGL demos showcaseYukio Andoh
 
Augmented Reality : How to find fun with Renewable Energy Education
Augmented Reality : How to find fun with Renewable Energy EducationAugmented Reality : How to find fun with Renewable Energy Education
Augmented Reality : How to find fun with Renewable Energy EducationJoannaPinewoodEducation
 
Augmented Reality by Joanna Pinewood Education.
Augmented Reality by Joanna Pinewood Education.Augmented Reality by Joanna Pinewood Education.
Augmented Reality by Joanna Pinewood Education.Ariel Perea Diaz
 
Google I/O 2018 KeynoteとDeveloper KeynoteのOverview
Google I/O 2018 KeynoteとDeveloper KeynoteのOverviewGoogle I/O 2018 KeynoteとDeveloper KeynoteのOverview
Google I/O 2018 KeynoteとDeveloper KeynoteのOverviewMasahiro Hidaka
 
Android Study Jam : Session 03 | GDSC SKCT
Android Study Jam : Session 03 | GDSC SKCTAndroid Study Jam : Session 03 | GDSC SKCT
Android Study Jam : Session 03 | GDSC SKCT19TUIT038KAVIARASUM
 

La actualidad más candente (9)

Geo Tech Talk (2011/3/7)
Geo Tech Talk (2011/3/7)Geo Tech Talk (2011/3/7)
Geo Tech Talk (2011/3/7)
 
Google I/O 2016 Key notes
Google I/O 2016 Key notesGoogle I/O 2016 Key notes
Google I/O 2016 Key notes
 
Google IO 2015
Google IO 2015Google IO 2015
Google IO 2015
 
WebGL demos showcase
WebGL demos showcaseWebGL demos showcase
WebGL demos showcase
 
Augmented Reality : How to find fun with Renewable Energy Education
Augmented Reality : How to find fun with Renewable Energy EducationAugmented Reality : How to find fun with Renewable Energy Education
Augmented Reality : How to find fun with Renewable Energy Education
 
Augmented Reality by Joanna Pinewood Education.
Augmented Reality by Joanna Pinewood Education.Augmented Reality by Joanna Pinewood Education.
Augmented Reality by Joanna Pinewood Education.
 
Dubai gov jam 2014
Dubai gov jam 2014 Dubai gov jam 2014
Dubai gov jam 2014
 
Google I/O 2018 KeynoteとDeveloper KeynoteのOverview
Google I/O 2018 KeynoteとDeveloper KeynoteのOverviewGoogle I/O 2018 KeynoteとDeveloper KeynoteのOverview
Google I/O 2018 KeynoteとDeveloper KeynoteのOverview
 
Android Study Jam : Session 03 | GDSC SKCT
Android Study Jam : Session 03 | GDSC SKCTAndroid Study Jam : Session 03 | GDSC SKCT
Android Study Jam : Session 03 | GDSC SKCT
 

Destacado

Android Wear Development for beginners
Android Wear Development for beginnersAndroid Wear Development for beginners
Android Wear Development for beginnersMoyinoluwa Adeyemi
 
What's new in Android Lollipop
What's new in Android LollipopWhat's new in Android Lollipop
What's new in Android LollipopAbdellah SELASSI
 
[@NaukriEngineering] Icon fonts & vector drawable in iOS apps
[@NaukriEngineering] Icon fonts & vector drawable in iOS apps[@NaukriEngineering] Icon fonts & vector drawable in iOS apps
[@NaukriEngineering] Icon fonts & vector drawable in iOS appsNaukri.com
 
[@NaukriEngineering] Apache Spark
[@NaukriEngineering] Apache Spark[@NaukriEngineering] Apache Spark
[@NaukriEngineering] Apache SparkNaukri.com
 
Android Development
Android DevelopmentAndroid Development
Android DevelopmentPluu love
 
Android Vector drawable
Android Vector drawableAndroid Vector drawable
Android Vector drawableOleg Osipenko
 
Lecture5 graphics
Lecture5   graphicsLecture5   graphics
Lecture5 graphicsMr SMAK
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displaysSomya Bagai
 
Adobe illustrator 1
Adobe illustrator 1Adobe illustrator 1
Adobe illustrator 1ilaazmil2
 

Destacado (10)

Getting with GIT
Getting with GITGetting with GIT
Getting with GIT
 
Android Wear Development for beginners
Android Wear Development for beginnersAndroid Wear Development for beginners
Android Wear Development for beginners
 
What's new in Android Lollipop
What's new in Android LollipopWhat's new in Android Lollipop
What's new in Android Lollipop
 
[@NaukriEngineering] Icon fonts & vector drawable in iOS apps
[@NaukriEngineering] Icon fonts & vector drawable in iOS apps[@NaukriEngineering] Icon fonts & vector drawable in iOS apps
[@NaukriEngineering] Icon fonts & vector drawable in iOS apps
 
[@NaukriEngineering] Apache Spark
[@NaukriEngineering] Apache Spark[@NaukriEngineering] Apache Spark
[@NaukriEngineering] Apache Spark
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
Android Vector drawable
Android Vector drawableAndroid Vector drawable
Android Vector drawable
 
Lecture5 graphics
Lecture5   graphicsLecture5   graphics
Lecture5 graphics
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
Adobe illustrator 1
Adobe illustrator 1Adobe illustrator 1
Adobe illustrator 1
 

Similar a Android - What's new?

Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Natalia Efimtseva
 
Udi Google Dev Day
Udi Google Dev DayUdi Google Dev Day
Udi Google Dev DayUdi Bauman
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NImam Raza
 
Google Cloud Platform Update
Google Cloud Platform UpdateGoogle Cloud Platform Update
Google Cloud Platform UpdateIdo Green
 
Building a scalable app factory with Appcelerator Platform
Building a scalable app factory with Appcelerator PlatformBuilding a scalable app factory with Appcelerator Platform
Building a scalable app factory with Appcelerator PlatformAngus Fox
 
Recap of Android Dev Summit 2018
Recap of Android Dev Summit 2018Recap of Android Dev Summit 2018
Recap of Android Dev Summit 2018Hassan Abid
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...e-Legion
 
On-device machine learning: TensorFlow on Android
On-device machine learning: TensorFlow on AndroidOn-device machine learning: TensorFlow on Android
On-device machine learning: TensorFlow on AndroidYufeng Guo
 
Introduction to Google Drive API
Introduction to Google Drive APIIntroduction to Google Drive API
Introduction to Google Drive APIJomar Tigcal
 
[Public] between two worlds native&no-native experiences
[Public] between two worlds  native&no-native experiences[Public] between two worlds  native&no-native experiences
[Public] between two worlds native&no-native experiencesNicolas Bortolotti
 
Importance of GCP: 30 Days of GCP
Importance of GCP: 30 Days of GCPImportance of GCP: 30 Days of GCP
Importance of GCP: 30 Days of GCPAnshTyagi27
 
Making mobile apps with Drupal data
Making mobile apps with Drupal dataMaking mobile apps with Drupal data
Making mobile apps with Drupal dataBart Gysens
 
Google Cloud Developer Challenge - GDG Belgaum
Google Cloud Developer Challenge - GDG BelgaumGoogle Cloud Developer Challenge - GDG Belgaum
Google Cloud Developer Challenge - GDG Belgaumsandeephegde
 
Sidiq Permana - Building For The Next Billion Users
Sidiq Permana - Building For The Next Billion UsersSidiq Permana - Building For The Next Billion Users
Sidiq Permana - Building For The Next Billion UsersDicoding
 
Introduction to serverless computing on Google Cloud
Introduction to serverless computing on Google CloudIntroduction to serverless computing on Google Cloud
Introduction to serverless computing on Google Cloudwesley chun
 

Similar a Android - What's new? (20)

Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)
 
Io 2018
Io 2018Io 2018
Io 2018
 
Udi Google Dev Day
Udi Google Dev DayUdi Google Dev Day
Udi Google Dev Day
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android N
 
Google Cloud Platform Update
Google Cloud Platform UpdateGoogle Cloud Platform Update
Google Cloud Platform Update
 
Building a scalable app factory with Appcelerator Platform
Building a scalable app factory with Appcelerator PlatformBuilding a scalable app factory with Appcelerator Platform
Building a scalable app factory with Appcelerator Platform
 
Recap of Android Dev Summit 2018
Recap of Android Dev Summit 2018Recap of Android Dev Summit 2018
Recap of Android Dev Summit 2018
 
Android lollipop
Android lollipopAndroid lollipop
Android lollipop
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
 
How To Build and Deploy Android App Bundles.pdf
How To Build and Deploy Android App Bundles.pdfHow To Build and Deploy Android App Bundles.pdf
How To Build and Deploy Android App Bundles.pdf
 
Google Developers Overview Deck 2015
Google Developers Overview Deck 2015Google Developers Overview Deck 2015
Google Developers Overview Deck 2015
 
Londroid meetup
Londroid meetupLondroid meetup
Londroid meetup
 
On-device machine learning: TensorFlow on Android
On-device machine learning: TensorFlow on AndroidOn-device machine learning: TensorFlow on Android
On-device machine learning: TensorFlow on Android
 
Introduction to Google Drive API
Introduction to Google Drive APIIntroduction to Google Drive API
Introduction to Google Drive API
 
[Public] between two worlds native&no-native experiences
[Public] between two worlds  native&no-native experiences[Public] between two worlds  native&no-native experiences
[Public] between two worlds native&no-native experiences
 
Importance of GCP: 30 Days of GCP
Importance of GCP: 30 Days of GCPImportance of GCP: 30 Days of GCP
Importance of GCP: 30 Days of GCP
 
Making mobile apps with Drupal data
Making mobile apps with Drupal dataMaking mobile apps with Drupal data
Making mobile apps with Drupal data
 
Google Cloud Developer Challenge - GDG Belgaum
Google Cloud Developer Challenge - GDG BelgaumGoogle Cloud Developer Challenge - GDG Belgaum
Google Cloud Developer Challenge - GDG Belgaum
 
Sidiq Permana - Building For The Next Billion Users
Sidiq Permana - Building For The Next Billion UsersSidiq Permana - Building For The Next Billion Users
Sidiq Permana - Building For The Next Billion Users
 
Introduction to serverless computing on Google Cloud
Introduction to serverless computing on Google CloudIntroduction to serverless computing on Google Cloud
Introduction to serverless computing on Google Cloud
 

Último

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationShrmpro
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 

Último (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 

Android - What's new?

  • 1. Google I/O Extended Lagos ’16 2016moyinoluwaMoyinoluwa ADEYEMI Android - What’s new?
  • 3. Android - What’s new for Nigerian Developers? What if the topic was...
  • 4. Android - What’s new for Nigerian Developers? #IO16 DevelopersUsers
  • 6. Related Google I/O session Android battery and memory optimizations (https://goo.gl/cVDwub) Doze mode (M vs. N)
  • 7. Doze mode (M vs. N) Android battery and memory optimizations Android battery and memory optimizations
  • 8. Android battery and memory optimizations Battery life and Memory Reduce - 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
  • 9. Android Battery and Memory optimizations Alternatively, Use the Android JobScheduler API on L+ devices or the Firebase JobDispatcher library on Pre-L devices
  • 10. Android JobScheduler An API for scheduling various types of jobs against the framework that will be executed in your application’s own process
  • 11. Firebase JobDispatcher GCM 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
  • 12. Getting started with JobScheduler/JobDispatcher I/O Codelab g.co/codelabs/jobscheduler
  • 13. Battery Historian Tool for monitoring all impact on the battery github.com/google/battery-historian
  • 14. Related Google I/O sessions Lean 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
  • 15. Components of an APK Lean and Fast - putting your app on a diet
  • 16. Images... PNG JPG WebP - 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
  • 17. 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
  • 18. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  • 19. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  • 20. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  • 21. APK > 100MB Have multiple APKs
  • 23. Related Google I/O sessions What’s new in Android (https://goo.gl/7BsfNj) What’s new in Android development tools (https://goo.gl/ldgHVG) Development tools
  • 24. Development tools Layout Editor Constraint Layout Layout Inspector Firebase Plugin Enhanced code analysis Samples browser Espresso test recorder APK Analyzer...
  • 25. Getting started Install Android 2.2 preview 3: https://goo.gl/CiWjqy Helpful articles on ConstraintLayout http://android-developers.blogspot.com.ng/2016/05/android-studio- 22-preview-new-ui.html http://segunfamisa.com/posts/constraint-layout-in-android http://riggaroo.co.za/constraintlayout-101-new-layout-builder- android-studio/ https://medium.com/google-developer-experts/first-impressions-of- androids-new-constraintlayout-c6d081b2bc2a

Notas del editor

  1. There were a lot of new releases for Android at I/O this year. There was the Android N Developer Preview 3, Android VR, Android Studio 2.2 Preview, Android Wear 2.0 and so on. This is all good, but I tried to go through I/O from a Nigerian developer’s perspective. Nigerian here meaning that the developer lives and works in Nigeria, and develops apps for the Nigerian market. We all know how our market is… expensive internet connection, no power etc etc. I tried to curate content that I thought would help Nigerian devs build better apps and think more about their users.
  2. So, I was able to divide my findings into two; releases that benefit the user and releases that benefits the developers. This is not an exhaustive list, but all the content is already available online or on the DVDs if you ordered for them so you can always go back to them. I bunched a lot of things that I think I will be able to talk about in about 45 minutes together, so, fasten your seat belts.
  3. We’ll start with the users, because, users first.
  4. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. There was a session dedicated to this topic at I/O where doze mode in M and N was completely broken down
  5. I took screenshots of this images from the slides at the Android battery and memory optimizations talk. In M, Doze mode becomes active, if a user leaves a device unplugged and stationary for a period of time, with the screen off. Doze mode works in N even when the app is not stationary unlike M where it worked only on stationary devices (refer to Android Battery and memory optimizations). Maintenance window where device is woken up temporarily to perform all the blocked tasks and then goes back to sleep for even longer and that cycle continues until the screen is on or the device is plugged. Most of the power goes when the screen is on for whatever reason, and then when the screen is off, wakelocks, services, background tasks
  6. Impact of all those activities happening at once in the maintenance window affects battery life and leads to much impact on the RAM of the device. You won’t want users detecting that your app is the one that drains their battery and uninstalls it. In this period where fuel now costs #145 per litre. *Tell mum story*
  7. They are the preferred way of doing work while your app isn't in the foreground.
  8. The framework will be intelligent about when you receive your callbacks, and attempt to batch and defer them as much as possible. Typically if you don't specify a deadline on your job, it can be run at any moment depending on the current state of the JobScheduler's internal queue, however it might be deferred as long as until the next time the device is connected to a power source.
  9. GCM Network Manager has been renamed to Firebase JobDispatcher.
  10. Battery Historian is a tool to inspect battery related information and events on an Android device running Android 5.0 Lollipop (API level 21) and later, while the device was on battery. It allows application developers to visualize system and application level events on a timeline with panning and zooming functionality, easily see various aggregated statistics since the device was last fully charged, and select an application and inspect the metrics that impact battery specific to the chosen application. It also allows an A/B comparison of two bugreports, highlighting differences in key battery related metrics.
  11. Apart from saving our users battery life, another thing we want to help them do is save their data. So that they can actually download your app instead of passing it around on Flash Share. Moment of truth… How large was the last Android app you built?
  12. This image was taken was from the presentation at the Lean and Fast session.
  13. WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index. Convert your favorite collection from PNG and JPEG to WebP by downloading the precompiled cwebpconversion tool for Linux, Windows or Mac OS X. VectorDrawable - think svg for Android
  14. VectorDrawableCompat makes VectorDrawable available on all devices from Android 2.1 and above How do we decide when to use these images? According to the Image Compression talk by Colt, we have to profile our code, make a decision based on evidence, optimize for your users in every case. Know when to use certain types of images (PNG, JPG, VectorDrawable, WebP images).
  15. Minify Enabled - Remove unused code. Use @Keep annotation if you don’t want AS to tamper with any of your methods.
  16. Shrink Resources - Remove unused resources. Code shrinking is available with ProGuard, which detects and removes unused classes, fields, methods, and attributes from your packaged app, including those from included code libraries (making it a valuable tool for working around the 64k reference limit). ProGuard also optimizes the bytecode, removes unused code instructions, and obfuscates the remaining classes, fields, and methods with short names. The obfuscated code makes your APK difficult to reverse engineer, which is especially valuable when your app uses security-sensitive features, such as licensing verification. Resource shrinking is available with the Android Plugin for Gradle, which removes unused resources from your packaged app, including unused resources in code libraries. It works in conjunction with code shrinking such that once unused code has been removed, any resources no longer referenced can be safely removed as well.
  17. Cruncher Enabled - After optimizing your png somewhere else, Android Asset Packaging Tool (AAPT) will also optimize by default except you tell it not to. But then the responsibility of optimizing all the PNGs in your images will be left to you.
  18. Multiple APK support is a feature on Google Play that allows you to publish different APKs for your application that are each targeted to different device configurations. Each APK is a complete and independent version of your application, but they share the same application listing on Google Play and must share the same package name and be signed with the same release key. This feature is useful for cases in which your application cannot reach all desired devices with a single APK.
  19. Now to the developers...
  20. Do a demo after talk if there’s time. Inform them that Android Studio 2.2 Preview 3 is downloaded and available for them to collect. Layout Editor - properties panel, blueprint mode, drag and drop, ui can edit menu features ConstraintLayout works from the preview mode in xml. Automatically convert your LinearLayouts to ConstraintLayouts Layout Inspector - takes a screenshot of your current view hierachy and allows you debug it Firebase Plugin - Firebase has been upgraded to a suite of developer services. Add all the new features of Firebase to your app. They are one click away including analytics, cloud messaging, realtime database, cloud test lab Enhanced code analysis - More thorough doe inspection with Java8 too Espresso test recorder - Walk through your app as a normal user and have AS generate Espresso tests for you on the go that you can incorporate into your work. There’s no excuse no to implement UI tests now. Apk Analyzer: Build, Analyze APK. Lets you see what's actually in your app. Add C++ support to Android project
  21. You’ll need to download preview 2 separately because a patch could not be issued due to a bug, but that has been fixed in preview 3 and you can install a 20MB patch from Preview 2 to 3 and get to experiment with all the new releases including the automatic espresso testing.