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. 7.

    Doze mode (M vs. N) Android battery and memory optimizations

    Android battery and memory optimizations
  2. 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
  3. 9.

    Android Battery and Memory optimizations Alternatively, • Use the Android

    JobScheduler API on L+ devices • or the Firebase JobDispatcher library on Pre-L devices
  4. 10.

    Android JobScheduler An API for scheduling various types of jobs

    against the framework that will be executed in your application’s own process
  5. 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
  6. 13.
  7. 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
  8. 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
  9. 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
  10. 18.

    Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  11. 19.

    Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  12. 20.

    Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  13. 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
  14. 24.

    Development tools • Layout Editor • Constraint Layout • Layout

    Inspector • Firebase Plugin • Enhanced code analysis • Samples browser • Espresso test recorder • APK Analyzer...
  15. 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
  16. 26.