Advanced Android Studio

E552215dd726801c644470feae8bb41c?s=47 mscheel
November 30, 2016

Advanced Android Studio

AnDevCon SF 2016 talk

E552215dd726801c644470feae8bb41c?s=128

mscheel

November 30, 2016
Tweet

Transcript

  1. @5280mark Advanced Android Studio Mark Scheel Senior Android Engineer Digital

    Construction, iTriage
  2. Let’s get into our time machine

  3. Wait, you don’t have one?

  4. @5280mark

  5. @5280mark Android Studio is Amazing because Time Time Time

  6. @5280mark

  7. @5280mark

  8. @5280mark Call To Action Tweet, people, tweet! @5280mark is making

    a fool of himself at #AnDevCon, he totally just confused structural search with live templates! #AndroidDev
  9. @5280mark Call To Action Get out your laptops, lets roll!

  10. The Basics

  11. Setting Up

  12. @5280mark Update Channels

  13. @5280mark Update Channels Android Studio's built-in update mechanism can be

    set to receive updates through any one of these 4 channels. Canary: Bleeding edge, released about weekly. These are early previews released in order to obtain real-world feedback during development. The canary channel will always have the latest build, including updates to beta or stable releases. We recommend running canary builds side-by-side with a beta or stable installation. Dev: Canary builds after a full round of internal testing get promoted into the Dev Channel. Beta: Release candidates based on stable canary builds, released and updated to obtain feedback prior to the stable release. The beta channel will be updated with new stable builds until a new canary build goes to beta. Stable: The official stable release, as available from the Android Developer site.
  14. @5280mark Themes Darcula • great contrast for coding • except

    for outdoor high light situations • or perhaps, presentations Preferences > Appearance
  15. @5280mark Line Number For the love of pete, people, turn

    them ON! (click in gutter)
  16. Commands (Keys)

  17. @5280mark Keys

  18. @5280mark Mac vs. Windows vs. Linux

  19. @5280mark Keys

  20. @5280mark

  21. @5280mark The Tricky Option Symbol

  22. @5280mark

  23. @5280mark Command Key Origin

  24. @5280mark

  25. @5280mark

  26. @5280mark

  27. Key Tools

  28. @5280mark KeyPromoter (Plugin)

  29. @5280mark KeyCastr

  30. @5280mark

  31. More Advanced Stuff

  32. More Advanced Stuff “I feel like this is the best

    version of this talk to date.” - Mark https://github.com/googlesamples/android-MultiWindowPlayground
  33. @5280mark

  34. @5280mark Nyan Cat

  35. @5280mark Nyan logcat cmd-6

  36. Navigation

  37. @5280mark Navigation • cmd-click layout file / click • sniper

    cross hairs (“scroll from source”?) • shift-cmd-[ (editor tab nav) • ctrl-tab (switcher) • ctrl-tab + number (switcher to panel) • Cmd-e (recents) • Cmd-[ (back) (] for forward)
  38. @5280mark Find Action Cmd-Shift-A (local history, DeMorgan Law, etc)

  39. @5280mark Find Action cmd-shift-a • it’s so nice I made

    the slide twice
  40. @5280mark Productivity Guide

  41. @5280mark Analyze APK

  42. @5280mark Complete Statement Cmd-Shift-Enter (try on if, while, for …

    adds boilerplate code)
  43. @5280mark Focus! Cmd-Shift-F12

  44. @5280mark File Structure Cmd-F12

  45. @5280mark Hierarchy ctrl-h aka cmd-8

  46. @5280mark Analyze Stacktrace Pull from any source

  47. @5280mark Expand Selection option-up arrow camel humps trick

  48. @5280mark Log, back to code, hide log! Cmd-6 esc (back)

    Cmd-6 shift-esc (hide)
  49. @5280mark Surround With cmd-alt t (wraps code in structure, like

    try/catch) neat: try cmd-shift-delete to un-surround note: on mac delete = fn + delete
  50. @5280mark Postfix Completion logd fori Toast (Cmd-J)

  51. @5280mark Multi-Cursor https://blog.jetbrains.com/idea/2014/03/ intellij-idea-13-1-rc-introduces-sublime- text-style-multiple-selections/ option-shift-click

  52. Breakpoints are amazing Temporary Logging

  53. Attach Debugger to running process You do not need to

    “Debug” Just click:
  54. @5280mark You complete me Tab vs. Enter • tab will

    fill in “smarter” (replace) • enter is more like insert (bar bart barbecue)
  55. Terminal

  56. @5280mark Open a finder window in same location $ find

    .
  57. @5280mark Dryrun Does: download project, unzip, import into Android Studio,

    gradle sync, build, run, install In ONE easy command! $ gem install dryrun $ dryrun https://github.com/googlesamples/android-unsplash https://github.com/googlesamples https://github.com/cesarferreira/dryrun
  58. Even more stuff

  59. Proxy debugging tools

  60. Source Control

  61. Android Studio Monitors

  62. Layout Inspector

  63. Structural Search and Replace https://realm.io/news/360andev-philippe-breault- android-studio-ide-like-boss-structural-search- refactoring-java/ Philippe Breault

  64. Constraint Layout Editor

  65. Espresso Test Recorder

  66. Checkstyle

  67. Android Emulator

  68. @5280mark Advanced Android Studio Mark Scheel Senior Android Engineer Digital

    Construction, iTriage
  69. @5280mark About the speaker Google Developer Group Denver Digital Construction

    www.digitalconstruction.com iTriage (5+ Million downloads)
  70. Google Developer Group Denver - DevFest

  71. Google Developer Group Denver - I/O Extended

  72. None
  73. None
  74. Google Developer Group Denver - Women TechMakers

  75. None
  76. None
  77. @5280mark About the speaker Google Developer Group Denver Digital Construction

    www.digitalconstruction.com iTriage (5+ Million downloads)
  78. Connect @5280mark www.digitalconstruction.com

  79. @5280mark Advanced Android Studio Mark Scheel Senior Android Engineer Digital

    Construction, iTriage
  80. None