Android - What's new?

Android - What's new?

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.

E803718649600ddffc1bc625d957e786?s=128

Moyinoluwa Adeyemi

June 11, 2016
Tweet

Transcript

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

    - What’s new?
  2. https://ng.linkedin.com/in/moyinoluwa @moyheen @moyheen Moyinoluwa Adeyemi Software Engineer, GDG Lagos Co-organizer

  3. Android - What’s new for Nigerian Developers? What if the

    topic was...
  4. Android - What’s new for Nigerian Developers? #IO16 Developers Users

  5. #IO16 Developers Users

  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

  22. #IO16 Users Developers

  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-studi o-22-preview-new-ui.html • http://segunfamisa.com/posts/constraint-layout-in-android • http://riggaroo.co.za/constraintlayout-101-new-layout-builder-and roid-studio/ • https://medium.com/google-developer-experts/first-impressions- of-androids-new-constraintlayout-c6d081b2bc2a
  26. thank you