Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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.

Moyinoluwa Adeyemi

June 11, 2016
Tweet

More Decks by Moyinoluwa Adeyemi

Other Decks in Technology

Transcript

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

    Android battery and memory optimizations
  2. 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. Android Battery and Memory optimizations Alternatively, • Use the Android

    JobScheduler API on L+ devices • or the Firebase JobDispatcher library on Pre-L devices
  4. Android JobScheduler An API for scheduling various types of jobs

    against the framework that will be executed in your application’s own process
  5. 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. 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
  7. 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
  8. 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
  9. Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  10. Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  11. Other options... android { ……… release { minifyEnabled true shrinkResources

    true cruncherEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } }
  12. 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
  13. Development tools • Layout Editor • Constraint Layout • Layout

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