What's New in Android Studio (@swmobilegroup)

What's New in Android Studio (@swmobilegroup)

Overview of new features for Android Dev tools announced at Google I/O 2016 + a few other IDE tips

Cba4aca9318039a288aae9be121abdc0?s=128

Andy B

June 21, 2016
Tweet

Transcript

  1. 2.

    Intro • Brief Android Tools History • Current IDE Highlights

    • What’s New? ◦ Design ◦ Develop ◦ Build ◦ Test @andyb129 ~ Slides ~ https://goo.gl/2bnz2n
  2. 5.

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

    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.<live template> i.e. array.for @andyb129 ~ Slides ~ https://goo.gl/2bnz2n
  4. 8.

    Design • Updated Layout Editor ◦ Blueprint view ◦ Scrollable

    content ◦ New properties ◦ Create preferences & menus @andyb129 ~ Slides ~ https://goo.gl/2bnz2n
  5. 9.

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

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

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

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

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

    Test Menu - ‘Build > Apk Analyzer’ (64k method limit

    - methods + referenced methods) @andyb129 ~ Slides ~ https://goo.gl/2bnz2n
  11. 17.

    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