Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Android - What's new?

594 visualizaciones

Publicado el

This presentation attempts to summarize content the speaker thinks is important for Nigerian Developers to take their apps to the next level. It contains a summary of specific Android sessions delivered at Google I/O 2016 and was presented at the Google I/O Extended 16 event in Lagos, Nigeria.

Publicado en: Software
  • Sé el primero en comentar

Android - What's new?

  1. 1. Google I/O Extended Lagos ’16 2016moyinoluwaMoyinoluwa ADEYEMI Android - What’s new?
  2. 2. https://ng.linkedin.com/in/moyinoluwa @moyheen @moyheen Moyinoluwa Adeyemi Software Engineer, GDG Lagos Co-organizer
  3. 3. Android - What’s new for Nigerian Developers? What if the topic was...
  4. 4. Android - What’s new for Nigerian Developers? #IO16 DevelopersUsers
  5. 5. #IO16 DevelopersUsers
  6. 6. Related Google I/O session Android battery and memory optimizations (https://goo.gl/cVDwub) Doze mode (M vs. N)
  7. 7. Doze mode (M vs. N) Android battery and memory optimizations Android battery and memory optimizations
  8. 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. 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. 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. 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. 12. Getting started with JobScheduler/JobDispatcher I/O Codelab g.co/codelabs/jobscheduler
  13. 13. Battery Historian Tool for monitoring all impact on the battery github.com/google/battery-historian
  14. 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. 15. Components of an APK Lean and Fast - putting your app on a diet
  16. 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. 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. 18. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  19. 19. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  20. 20. Other options... android { ……… release { minifyEnabled true shrinkResources true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard- android.txt’), ‘proguard-rules.pro’ } }
  21. 21. APK > 100MB Have multiple APKs
  22. 22. #IO16 Users Developers
  23. 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. 24. Development tools Layout Editor Constraint Layout Layout Inspector Firebase Plugin Enhanced code analysis Samples browser Espresso test recorder APK Analyzer...
  25. 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
  26. 26. thank you

×