~/talk

Android Studio: Tips and tricks

Talkat Google I/O 2019 · 2019-05-07..05-09· [developer-experience, android]

Shows concrete Android Studio 3.5 Beta workflows: use the Profiler to catch memory leaks (allocation tracking + GC) and the Energy Profiler to see CPU/network/GPS and WorkManager jobs, organize multi-module Gradle via a shared libs map, and check up‑to‑date builds to find flaky tasks (don’t use new Date in BuildConfig). Live demos include keyboard navigation, Smart Type Completion, refactorings and post‑fix templates, the Navigation/Layout/Resource editors with sample data and drag‑drop, and the new Apply Changes flow that deploys resource or code diffs and supports dropping frames to continue.

AI-written summary · about

  1. 0:00Start
  2. 1:29detect memory leaks
  3. 1:57select a stock image
  4. 2:17use another tip in profilers
  5. 4:26open and close tool windows by clicking on the little buttons
  6. 4:56use the switcher control tab switches between most recent files
  7. 5:11open the drowned window
  8. 6:33switch between the tabs at the bottom
  9. 7:00split it into two different editors
  10. 9:38opens up a little tooltip with all the java
  11. 10:04use basic code completion control
  12. 10:35add a comma
  13. 11:00press control shift space
  14. 12:32stops at blank lines
  15. 13:48copy and paste from my previous items
  16. 15:05using the inline variable
  17. 17:06fix this up with a smart code completion
  18. 19:09navigate through the different destinations clicking on the left side
  19. 19:52organize your navigation graph
  20. 20:30organize your navigation graph a little
  21. 22:03populate your layouts
  22. 22:52select the constraint
  23. 23:31shows the hierarchy of my layout
  24. 24:01navigate to other layouts
  25. 25:13open an empty layout okay
  26. 25:38switch to a different mode
  27. 26:59drag it on top of an existing image view
  28. 27:38change the scaling of your image
  29. 27:57set the aspect ratio
  30. 28:09keep the aspect ratio of this image all the time
  31. 28:57share a few tips and tricks around building and running and deploying
  32. 29:49put the core under the libraries
  33. 31:07update all of the dependencies
  34. 31:45created library versions of gradle
  35. 32:23create a property ellipse
  36. 32:44open up the build gradle file in the root project
  37. 34:23select the core doodle
  38. 34:36click resolve dependencies on the right hand side
  39. 35:26run the build second time
  40. 36:43setting the build time field of the build config
  41. 37:03select the core modules module
  42. 37:55run this on the emulator
  43. 38:44open up strings on xml
  44. 39:05create a diff between those two apks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.