Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Google I/O 2022 recap

Max
May 20, 2022

Google I/O 2022 recap

Max

May 20, 2022
Tweet

More Decks by Max

Other Decks in Programming

Transcript

  1. Tiramisu Key changes • Phone at the center • Better

    together • UI Updates • Language per app • More security
  2. Google Wallet But not for us :( • Google Pay

    -> Google Wallet • Credit Cards, Car Keys, Documents and so on
  3. Pixel 6a • $449 • Cameras from Pixel 5 •

    6.1” 60Hrz display • Tensor chip • 6Gb RAM 128Gb Storage • Pre-order starting July 21
  4. Pixel 7 • Coming this fall • Aluminum body •

    New standard for photo • New Tensor chip • Android 13
  5. Pixel Buds Pro • Active Noise Cancellation • Transparency Mode

    • Noise-Suppression • Up to 11 hours of listening time • Up to 7 hours with noise cancellation • Multi-point connectivity • Spatial Audio • Find My Device • $199
  6. Pixel Watch • Coming this fall • Maps without phone

    • Wallet also • Built-in Assistant
  7. Key changes in Android Studio • Logicat v2 • Wear

    OS integrations • Gradle Managed Device ( for testing) • Compose Recomposition • Compose Animations Preview • Live Edit (Compose) • Compose Multi-Preview • Device Mirroring • Resizable Emulator
  8. Other • Firebase in Android Studio. Shows crash in the

    code • Chrome make web better • See popular SDK’s in Play Console
  9. New permission Noti fi cation • Request POST_NOTIFICATUONS in order

    to prompt users for the noti fi cation permission • Access to noti fi cations can be checked either through the PermissionChecker, or by using Noti fi cationManager.areNoti fi cationsEnabled method
  10. Photo Picker • No runtime permissions • Will soon include

    cloud photos & videos • Backported to Android 11 & 12
  11. Back to the basics of System Back Unpredictable Back With

    the current model, users can’t see ahead, which results in false positives
  12. Back to the basics of System Back Opt in the

    new behaviour • Once the new behaviour is enabled, KEYCODE_BACK and onBackPressed() won’t be used anymore • Application will have to rely entirely on the OnBackInvockedCallback Android 13 Android 14 <application android:enableOnBackInvokedCallback="true"> The new back dispatching will be enabled by default for application targeting SDK 34
  13. Back to the basics of System Back Predictable Back •

    The ahead-of-time model allows the system to show a preview of the destination
  14. ART Module • All devices running Android 12+ will get

    ART updates even outside the normal Android release cycle • OpenJDK updates too
  15. Android Studio Dolphin • Logcat v2 • SDK Index Integration

    • WearOS Launch Con fi gurations • WearOS Pairing Assistant & Toolbar • Gradle Managed Devices • Compose Recomposition in Layout Inspector • Compose Animation Coordination Preview
  16. Android Studio Electric Eel Features may slack to next version

    • Compose Live Edit • Visual Lint for Compose (?) • Compose Multi-Preview • Device Mirroring • Resizable Emulator • App Quality Insights
  17. JankStats android.metrics:metrics-performance • Track and analyse bank performance problems in

    app’s UI • Identi fi es performance issues using internal heuristics • Report results on every frame via a listener
  18. Baseline Profiles androidx.pro fi leinstaller:pro fi leinstaller • Provide custom

    pro fi le rules in apps and libraries • Startup and junk performance improvements • Pro fi les added to popular Jetpack libraries
  19. Macrobenchmark androidx.benchmark:benchmark-macro • Accurately measure app startup and scrolling performance,

    both locally and in CI • Now supports down to API level 23 • Added BaselinePro fi leRule to generate pro fi les for critical work fl ows
  20. Navigation androidx.navigation:navigation • Stable support for multiple backstacks • Integration

    between Navigation and Compose • Prebuilt support for two-pane layouts • All artifacts rewritten in Kotlin
  21. WindowManager androidx.window:window • Support new device for factors and multi-window

    environments • Smart layout avoids placing content in occluded areas • Already integrated into SlidingPaneLayout • Supports foldable phones to adjust how content is displayed • Now stable
  22. AppCompat androidx.appcompat:appcompat • Access the latest foundational UI features from

    earlier API levels • Emoji2 integration allows default support for the latest emojis • Custom locale selection back ported from Tiramisu • Uses Play splits to download additional locales
  23. CameraX • HDR Video Capture • Pause/Resume • Audio control

    • Choose camera & resolution • Better preview quality • Portrait Bokeh
  24. Compose • Nested Scrolling Interop (Coordinator Layout (View) <-> Compose)

    • Downloadable fonts • Lazy Layouts API improvements