Share
Embed
Retex DroidCon UK 2017
Carole Thébaud & I did a quick presentation about the takeaways and talks we assisted during the DroidCon UK in London 26-27th oct 2017.
Every talk is available on skillsmatter's website and we provided links to the videos/sample/blog post when available.
https://skillsmatter.com/conferences/8265-droidcon-london-2017#skillscasts
Pictures are from skillsmatter's flickr : https://flic.kr/s/aHsm7JNde1
Alain Muller
November 08, 2017
Transcript
177 slides
-
DroidCon London 2017 Carole Thébaud Alain Muller 26 - 27
oct. Business Design Center -
Android: A Retrospective Chet Haase & Romain Guy • Comedy
talk • Android history through all releases • Links : Talk -
About Memory Management in Fully Reactive Apps Paco Estevez •
Most common memory leaks -
About Memory Management in Fully Reactive Apps Paco Estevez •
Most common memory leaks • Bad lifecycle handling -
About Memory Management in Fully Reactive Apps Paco Estevez •
Most common memory leaks • Bad lifecycle handling • Keeping references (inner/anonymous classes) -
About Memory Management in Fully Reactive Apps Paco Estevez •
Best practices : -
About Memory Management in Fully Reactive Apps Paco Estevez •
Best practices : • .takeUntil operator -
About Memory Management in Fully Reactive Apps Paco Estevez •
Best practices : • .takeUntil operator • Architecture components -
About Memory Management in Fully Reactive Apps Paco Estevez •
Best practices : • .takeUntil operator • Architecture components • Links : Talk, slides shorter / longer -
Profile, debug, analyze Wojtek Kaliciński • Best practices • AS
tooling (APK Analyzer, profiler (CPU, GPU, mem, Network), view hierarchy, systrace, proguard) -
Profile, debug, analyze Wojtek Kaliciński • Best practices • AS
tooling (APK Analyzer, profiler (CPU, GPU, mem, Network), view hierarchy, systrace, proguard) • Links : Talk -
How to Keep Your API Keys Safe Richard Taylor •
2 weak points for hacking : app / communication -
How to Keep Your API Keys Safe Richard Taylor •
2 weak points for hacking : app / communication • App : -
How to Keep Your API Keys Safe Richard Taylor •
2 weak points for hacking : app / communication • App : • DO NOT store anything in manifest (unzip apk -> everything is visible) -
How to Keep Your API Keys Safe Richard Taylor •
2 weak points for hacking : app / communication • App : • DO NOT store anything in manifest (unzip apk -> everything is visible) • DO NOT hardcode keys in a class or strings.xml (easy to reverse-engineer) -
How to Keep Your API Keys Safe Richard Taylor •
Communication : -
How to Keep Your API Keys Safe Richard Taylor •
Communication : • Man In The Middle technique : show requests (w/ content) -
How to Keep Your API Keys Safe Richard Taylor •
Communication : • Man In The Middle technique : show requests (w/ content) • Use an obfuscation for external calls (hash / salt / HMAC) -
How to Keep Your API Keys Safe Richard Taylor •
Communication : • Man In The Middle technique : show requests (w/ content) • Use an obfuscation for external calls (hash / salt / HMAC) • Use an external server to authenticate app -
How to Keep Your API Keys Safe Richard Taylor •
Communication : • Man In The Middle technique : show requests (w/ content) • Use an obfuscation for external calls (hash / salt / HMAC) • Use an external server to authenticate app • Links : Talk -
From View to Pixel Britt Barak • Smooth user experience
• Measure > layout > draw -
From View to Pixel Britt Barak • Smooth user experience
• Measure > layout > draw • invalidate() -> re-draw -
From View to Pixel Britt Barak • Smooth user experience
• Measure > layout > draw • invalidate() -> re-draw • requestLayout() -> re-measure -
From View to Pixel Britt Barak • Flatten view hierarchy
• Remove unneeded views -
From View to Pixel Britt Barak • Flatten view hierarchy
• Remove unneeded views • Merge on include -
From View to Pixel Britt Barak • Flatten view hierarchy
• Remove unneeded views • Merge on include • Flatter layouts -
From View to Pixel Britt Barak • Flatten view hierarchy
• Remove unneeded views • Merge on include • Flatter layouts • Minimize requestLayout() -
From View to Pixel Britt Barak • Flatten view hierarchy
• Remove unneeded views • Merge on include • Flatter layouts • Minimize requestLayout() • Links : Talk -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) • Clipping is bad -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) • Clipping is bad • New API (gradient...) -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) • Clipping is bad • New API (gradient...) • How to import SVG into a VD -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) • Clipping is bad • New API (gradient...) • How to import SVG into a VD • Tools & plugins (sketch export plugin, shapeshifter…) -
Vector Workflows Nick Butcher • Definition of SVG / Vector
Drawables • Optimisations VS classic PNGs (size, precision) • Clipping is bad • New API (gradient...) • How to import SVG into a VD • Tools & plugins (sketch export plugin, shapeshifter…) • Links : Talk -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB • put logic in XML -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB • put logic in XML • no time for tests -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB • put logic in XML • no time for tests • motion doesn't always have to be meaningful -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB • put logic in XML • no time for tests • motion doesn't always have to be meaningful • turn off lint checks -
The Baddest Android Advice in All The Land Bad Android
Advice • use FAB • put logic in XML • no time for tests • motion doesn't always have to be meaningful • turn off lint checks • don't learn design guidelines, invent your own -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development • store your sign-in/credential in your repo w/your code -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development • store your sign-in/credential in your repo w/your code • save all data in sharedPrefs -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development • store your sign-in/credential in your repo w/your code • save all data in sharedPrefs • select all files > convert to Kotlin > rest -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development • store your sign-in/credential in your repo w/your code • save all data in sharedPrefs • select all files > convert to Kotlin > rest • put plus sign in your dependencies version -
The Baddest Android Advice in All The Land Bad Android
Advice • use/hack private APIs • only use your fancy phone and data plan / wifi for development • store your sign-in/credential in your repo w/your code • save all data in sharedPrefs • select all files > convert to Kotlin > rest • put plus sign in your dependencies version • Links : Talk -
Why do we need Clean Architecture Igor Wojda • isolated
layers = less merge conflicts but you need to implement mappers -
Why do we need Clean Architecture Igor Wojda • isolated
layers = less merge conflicts but you need to implement mappers • IoC / DI to link all together -
Why do we need Clean Architecture Igor Wojda • isolated
layers = less merge conflicts but you need to implement mappers • IoC / DI to link all together • easily testable at every level -
Why do we need Clean Architecture Igor Wojda • isolated
layers = less merge conflicts but you need to implement mappers • IoC / DI to link all together • easily testable at every level • YOU SHOULD DO IT -
Why do we need Clean Architecture Igor Wojda • isolated
layers = less merge conflicts but you need to implement mappers • IoC / DI to link all together • easily testable at every level • YOU SHOULD DO IT • Links : Talk / slides -
CYA : Cover Your App Jorge Ortiz Fuentes • Selfish
Unit Tests • Do not rely on code coverage (not a viable KPI for your business logic) -
CYA : Cover Your App Jorge Ortiz Fuentes • Selfish
Unit Tests • Do not rely on code coverage (not a viable KPI for your business logic) • Live coding with Rx / Dagger and Instrumented Tests -
CYA : Cover Your App Jorge Ortiz Fuentes • Selfish
Unit Tests • Do not rely on code coverage (not a viable KPI for your business logic) • Live coding with Rx / Dagger and Instrumented Tests • Links : Talk -
CYA : Cover Your App Jorge Ortiz Fuentes • Selfish
Unit Tests • Do not rely on code coverage (not a viable KPI for your business logic) • Live coding with Rx / Dagger and Instrumented Tests • Links : Talk -
CYA : Cover Your App Jorge Ortiz Fuentes • Selfish
Unit Tests • Do not rely on code coverage (not a viable KPI for your business logic) • Live coding with Rx / Dagger and Instrumented Tests • Links : Talk -
Lint for Life: Your Customizable Guard At Compile Time Snow
Zhao • AST and UAST -
Lint for Life: Your Customizable Guard At Compile Time Snow
Zhao • AST and UAST • Lint vs other static code analysis tools (PMD, findbugs, ...) -
Lint for Life: Your Customizable Guard At Compile Time Snow
Zhao • AST and UAST • Lint vs other static code analysis tools (PMD, findbugs, ...) • Custom Lint Rules -
Lint for Life: Your Customizable Guard At Compile Time Snow
Zhao • AST and UAST • Lint vs other static code analysis tools (PMD, findbugs, ...) • Custom Lint Rules -
Lint for Life: Your Customizable Guard At Compile Time Snow
Zhao • AST and UAST • Lint vs other static code analysis tools (PMD, findbugs, ...) • Custom Lint Rules • Links : Talk (not yet available) -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : • Boilerplate code -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : • Boilerplate code • Difficult migration -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : • Boilerplate code • Difficult migration • Difficult test -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : • Boilerplate code • Difficult migration • Difficult test • Database operations on main thread -
Data Persistence In Android: There’s Room For Improvement Florina Muntenescu
• Based on SQLite • Solves these common problems/mistakes : • Boilerplate code • Difficult migration • Difficult test • Database operations on main thread • Links : Talk -
Three key lessons when migrating to ConstraintLayout Connie Reinholdsson •
Converted different layouts to see what was the result -
Three key lessons when migrating to ConstraintLayout Connie Reinholdsson •
Converted different layouts to see what was the result • Don't do this at home kids -
Three key lessons when migrating to ConstraintLayout Connie Reinholdsson •
Converted different layouts to see what was the result • Don't do this at home kids • @see Nicolas Roard’s talk (slides/video on ConstraintLayout during DevFest Nantes) -
Three key lessons when migrating to ConstraintLayout Connie Reinholdsson •
Converted different layouts to see what was the result • Don't do this at home kids • @see Nicolas Roard’s talk (slides/video on ConstraintLayout during DevFest Nantes) -
Three key lessons when migrating to ConstraintLayout Connie Reinholdsson •
Converted different layouts to see what was the result • Don't do this at home kids • @see Nicolas Roard’s talk (slides/video on ConstraintLayout during DevFest Nantes) • Links : Talk / blog post -
Keynote: Tips for Library Development from a Startup Developer Lisa
Wray • You’re not Google / Facebook / Square -
Keynote: Tips for Library Development from a Startup Developer Lisa
Wray • You’re not Google / Facebook / Square • If you needed it, it might be useful to others -
Keynote: Tips for Library Development from a Startup Developer Lisa
Wray • You’re not Google / Facebook / Square • If you needed it, it might be useful to others • K.I.S.S. -
Keynote: Tips for Library Development from a Startup Developer Lisa
Wray • You’re not Google / Facebook / Square • If you needed it, it might be useful to others • K.I.S.S. • Links : Talk -
Keynote: Developers Are Users Too Florina Muntenescu • We as
developers are users of our own APIs and are end users too -
Keynote: Developers Are Users Too Florina Muntenescu • We as
developers are users of our own APIs and are end users too • Take care of APIs public methods as much as our design -
Keynote: Developers Are Users Too Florina Muntenescu • We as
developers are users of our own APIs and are end users too • Take care of APIs public methods as much as our design • 10 Usability heuristics for API design -
Keynote: Developers Are Users Too Florina Muntenescu • We as
developers are users of our own APIs and are end users too • Take care of APIs public methods as much as our design • 10 Usability heuristics for API design • Links : Talk -
Keynote: Developers Are Users Too Florina Muntenescu • We as
developers are users of our own APIs and are end users too • Take care of APIs public methods as much as our design • 10 Usability heuristics for API design • Links : Talk -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger • Dagger... -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger • Dagger... • Unit Tests / Instrumented Tests -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger • Dagger... • Unit Tests / Instrumented Tests • How to test void / asynchronous / synchronous observables methods (see photos) -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger • Dagger... • Unit Tests / Instrumented Tests • How to test void / asynchronous / synchronous observables methods (see photos) • Links : Talk -
Testing Android apps based on Dagger and RxJava Fabio Collini
• Dagger • Dagger • Dagger... • Unit Tests / Instrumented Tests • How to test void / asynchronous / synchronous observables methods (see photos) • Links : Talk -
Becoming a Master Window Fitter Chris Banes • How to
use fitsSystemWindow -
Becoming a Master Window Fitter Chris Banes • How to
use fitsSystemWindow • Do not use android.R.dimen.status_bar_height -
Becoming a Master Window Fitter Chris Banes • How to
use fitsSystemWindow • Do not use android.R.dimen.status_bar_height • Do not use 24dp margin on post-lollipop (21+) -
Becoming a Master Window Fitter Chris Banes • How to
use fitsSystemWindow • Do not use android.R.dimen.status_bar_height • Do not use 24dp margin on post-lollipop (21+) • use appropriate listener (onApplyWindowsInsetsListener) -
Becoming a Master Window Fitter Chris Banes • How to
use fitsSystemWindow • Do not use android.R.dimen.status_bar_height • Do not use 24dp margin on post-lollipop (21+) • use appropriate listener (onApplyWindowsInsetsListener) • Links : Talk -
Pragmatic Kotlin on Android Josh Skeen • Const VS val
(not really immutable) -
Pragmatic Kotlin on Android Josh Skeen • Const VS val
(not really immutable) • Converting = booooh (errors, not optimized, leads to mistakes) -
Pragmatic Kotlin on Android Josh Skeen • Const VS val
(not really immutable) • Converting = booooh (errors, not optimized, leads to mistakes) • use .let, .apply (null check -> if a == null blah() becomes a ?: blah()) -
Pragmatic Kotlin on Android Josh Skeen • Const VS val
(not really immutable) • Converting = booooh (errors, not optimized, leads to mistakes) • use .let, .apply (null check -> if a == null blah() becomes a ?: blah()) • extensions function -
Pragmatic Kotlin on Android Josh Skeen • Const VS val
(not really immutable) • Converting = booooh (errors, not optimized, leads to mistakes) • use .let, .apply (null check -> if a == null blah() becomes a ?: blah()) • extensions function • Links : Talk -
Kotlin Coroutines and Android sitting in a tree Kai Koenig
• Complex but efficient -
Kotlin Coroutines and Android sitting in a tree Kai Koenig
• Complex but efficient • Cheaper / Faster / lightweight than Threads -
Kotlin Coroutines and Android sitting in a tree Kai Koenig
• Complex but efficient • Cheaper / Faster / lightweight than Threads • Run in // -
Kotlin Coroutines and Android sitting in a tree Kai Koenig
• Complex but efficient • Cheaper / Faster / lightweight than Threads • Run in // • Still experimental (lib kotlinx.Coroutines) -
Kotlin Coroutines and Android sitting in a tree Kai Koenig
• Complex but efficient • Cheaper / Faster / lightweight than Threads • Run in // • Still experimental (lib kotlinx.Coroutines) • Links : Talk -
Android Instant Apps Benjamin Weiss • modularize your app (base.apk
feature1.apk feature2.apk) -
Android Instant Apps Benjamin Weiss • modularize your app (base.apk
feature1.apk feature2.apk) • bundled app <= 4mb (base.apk + featureX.apk) -
Android Instant Apps Benjamin Weiss • modularize your app (base.apk
feature1.apk feature2.apk) • bundled app <= 4mb (base.apk + featureX.apk) • tools to optimize size (APK analyser...) + best practices (one APK by "flavor") -
Android Instant Apps Benjamin Weiss • modularize your app (base.apk
feature1.apk feature2.apk) • bundled app <= 4mb (base.apk + featureX.apk) • tools to optimize size (APK analyser...) + best practices (one APK by "flavor") • Links : Talk / sample -
Towards a better language Chet Haase & Romain Guy •
Comedy talk • F.A.R.T & P.O.O.P -
Towards a better language Chet Haase & Romain Guy •
Comedy talk • F.A.R.T & P.O.O.P • Dependency rejection… -
Towards a better language Chet Haase & Romain Guy •
Comedy talk • F.A.R.T & P.O.O.P • Dependency rejection… • Links : Talk -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks • Live hacking -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks • Live hacking • Follow OWASP guides -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks • Live hacking • Follow OWASP guides • Prevent Temper / Debug / Instrumented -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks • Live hacking • Follow OWASP guides • Prevent Temper / Debug / Instrumented • SafetyNet API to prevent running your app on rooted (xposed) devices -
Hacking Android, a Hacker's narrative Chris Le Roy • History
/ Examples of Hacks • Live hacking • Follow OWASP guides • Prevent Temper / Debug / Instrumented • SafetyNet API to prevent running your app on rooted (xposed) devices • Links : Talk -
Litho Animations and Internals Marco Cova & Andy Street •
Facebook's anim lib -
Litho Animations and Internals Marco Cova & Andy Street •
Facebook's anim lib • limit view hierarchy on draw -
Litho Animations and Internals Marco Cova & Andy Street •
Facebook's anim lib • limit view hierarchy on draw • measure / layout step done by the lib -> only draw -
Litho Animations and Internals Marco Cova & Andy Street •
Facebook's anim lib • limit view hierarchy on draw • measure / layout step done by the lib -> only draw • leads to really fluids animation -
Litho Animations and Internals Marco Cova & Andy Street •
Facebook's anim lib • limit view hierarchy on draw • measure / layout step done by the lib -> only draw • leads to really fluids animation • Links : Talk -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez • How to build an MVP (choices, optimisations, be fast) -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez • How to build an MVP (choices, optimisations, be fast) • How to implement Face Recognition using AI / Machine Learning -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez • How to build an MVP (choices, optimisations, be fast) • How to implement Face Recognition using AI / Machine Learning • Some code samples (Cloud A dialogflow,…) -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez • How to build an MVP (choices, optimisations, be fast) • How to implement Face Recognition using AI / Machine Learning • Some code samples (Cloud A dialogflow,…) • AR to display items on the matched face with code samples... -
Building a Minimum Viable Product (MVP) with Face recognition and
AR in Android Raul Hernandez • How to build an MVP (choices, optimisations, be fast) • How to implement Face Recognition using AI / Machine Learning • Some code samples (Cloud A dialogflow,…) • AR to display items on the matched face with code samples... • Links : Talk / sample -
Sinking Your Teeth Into Bytecode Jake Wharton • Command lines
to generate bytecode and analyze it -
Sinking Your Teeth Into Bytecode Jake Wharton • Command lines
to generate bytecode and analyze it • Various samples end checks on different implementations -
Sinking Your Teeth Into Bytecode Jake Wharton • Command lines
to generate bytecode and analyze it • Various samples end checks on different implementations • Kotlin / retrolambda / D8 -
Sinking Your Teeth Into Bytecode Jake Wharton • Command lines
to generate bytecode and analyze it • Various samples end checks on different implementations • Kotlin / retrolambda / D8 • AS Tools (marvellous Kotlin bytecode analyser) -
Sinking Your Teeth Into Bytecode Jake Wharton • Command lines
to generate bytecode and analyze it • Various samples end checks on different implementations • Kotlin / retrolambda / D8 • AS Tools (marvellous Kotlin bytecode analyser) • Links : Talk