Slide 1

Slide 1 text

What’s new in Andy Barber Android Dev @ CareflowConnect.com ~ @andyb129

Slide 2

Slide 2 text

Intro ● Brief Android Tools History ● Current IDE Highlights ● What’s New? ○ Design ○ Develop ○ Build ○ Test @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 3

Slide 3 text

Android Tools History Eclipse @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 4

Slide 4 text

Android Tools History Android Studio @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 5

Slide 5 text

Android Tools History ● Android Studio launched 2013 ● 131 releases since then (Preview, Beta & Stable Channels) ● Features so far ○ Gradle build support ○ Instant run ○ New (Useable) Emulator ○ Power of Intellij (plugins, refactoring etc) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 6

Slide 6 text

Plugins ● Material Icon Generator ~> https://github.com/konifar/android-material-design-icon-generator-plugin ● GSON formatter ~> https://github.com/zzz40500/GsonFormat ● Parcelabler ~> https://github.com/mcharmas/android-parcelable-intellij-plugin ● M Permissions code generator ~> https://github.com/shiraji/permissions-dispatcher-plugin Current IDE Highlights Shortcuts ● Android Shortcut Ninja - http://barbuzz. co.uk/2016/01/24/android-studio- shortcut-ninja/ Live Templates ● Great shortcut for auto generating code ● variable. i.e. array.for @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 7

Slide 7 text

What’s New? Google I/O 2016 Talk ~> https://www.youtube.com/watch?v=csaXml4xtN8 @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 8

Slide 8 text

Design ● Updated Layout Editor ○ Blueprint view ○ Scrollable content ○ New properties ○ Create preferences & menus @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 9

Slide 9 text

Design ● Constraint Layout ○ Easy layout creation ○ More responsive UI ● Features ○ API Level 9 + (Gingerbread) ○ Now default layout instead of Coordinator layout ○ Menu option in Layout Editor ‘Convert to Constraint Layout’ ● compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha3' ● Google I/O Talk ~> https://goo.gl/4pYZpI @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 10

Slide 10 text

Design Layout Inspector @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 11

Slide 11 text

Develop Firebase plugin (Tools Menu) - Google Analytics, Cloud Messaging, Cloud Test Lab - http://barbuzz.co.uk/2016/03/01/head-in-the-google-cloud-test-lab/ ) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 12

Slide 12 text

Develop ● Right click on Class & ‘Find Sample Code’ ● Merged Manifest Tab in Manifest Window (helps understand gradle manifest merge) ● C++ & Java debugging together ● @Keep annotation on methods for Proguard ● Auto gen code to deal with permission request from Marshmallow (still in dev - plugin available now - see later) ● Java 8 Language Support - Lambdas etc. ● Refactor > Remove unused resources (unused string/values etc.) ● ‘Background’ button to download sdk + tools in background (remove model dialog) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 13

Slide 13 text

Develop ● New Project Structure Dialog (experimental flag) ○ Messages library update tab + better dependency lookup ● Suggested Annotations - Analyse > Infer Annotations (experimental flag) studio.infer.annotations=true @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 14

Slide 14 text

Build ● Instant Run performance improvements & bug fixes ● Auto download of build tools ● Jack (Java Android Compiler Kit) Compiler defaultConfig { // Enable the experimental Jack build tools. jackOptions { enabled true } @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 15

Slide 15 text

Test Menu - ‘Build > Apk Analyzer’ (64k method limit - methods + referenced methods) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 16

Slide 16 text

Test Espresso Test Recorder @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 17

Slide 17 text

When? ● Now-ish ~> still preview but stable Where? ● Android Studio 2.2 Preview 3 - https://sites.google. com/a/android. com/tools/recent/androidstudio22preview3available ○ would recommend installing alongside AS 2.1 ● Android blog about all NEW features here - https: //android-developers.blogspot.co.uk/2016/05/android- studio-22-preview-new-ui.html If you’re not an Android Developer it’s the best time to start! Get some (Android Studio Goodness) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n

Slide 18

Slide 18 text

@andyb129 ~ Slides ~ https://goo.gl/2bnz2n