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

After I/O Kabul Android summary

After I/O Kabul Android summary

Hadi Tok

June 20, 2019
Tweet

More Decks by Hadi Tok

Other Decks in Technology

Transcript

  1. After I/O Kabul
    Kotlin First/Android Q
    1

    View full-size slide

  2. Who Am I?
    • Hadi Tok
    • Lead Android Developer @CitizenMe
    • Google Developers Expert on Android
    • Organizer at GDG Istanbul
    • https://haditok.com/
    2

    View full-size slide

  3. Google I/O
    3
    • Organized by Google At Mountain View CA
    • Gathers developers from all around the world
    • New technologies developed by Google
    announced

    View full-size slide

  4. Google I/O 2019 What’s new on Android
    4
    • Kotlin First
    • Coroutines first
    • Jetpack Compose
    • Dark Mode
    • Gesture Navigation
    • Security and Privacy
    • CameraX
    • ViewBindings

    View full-size slide

  5. Kotlin First
    5
    • Kotlin became official language 2017 along with
    Java and C++
    • KTX Libraries
    • IDE Support
    • Documentation
    • Samples

    View full-size slide

  6. Kotlin First
    6
    • Kotlin became primary language 2019 over Java and
    C++
    • Feature support
    • IDE Support
    • More Documentation
    • More Samples

    View full-size slide

  7. How to get started with Kotlin
    7
    • http://try.kotlinlang.org
    • https://kotlinlang.org/docs/reference/
    • https://codelabs.developers.google.com/android-ko
    tlin-fundamentals/

    View full-size slide

  8. Corotutines First
    8
    • What are Coroutines?
    • Non-blocking
    • Asynchronous
    • Straightforward as plain synchronous code.

    View full-size slide

  9. Corotutines First
    9

    View full-size slide

  10. Jetpack Coroutines support
    10
    • LiveData
    • ViewModel
    • WorkManager
    • Room

    View full-size slide

  11. Jetpack Compose
    11
    • Jetpack Compose is an unbundled toolkit designed
    to simplify UI development. It combines a reactive
    programming model with the conciseness and ease
    of use of the Kotlin programming language.

    View full-size slide

  12. Jetpack Compose
    12
    • Concise and Idiomatic Kotlin
    • Declarative
    • Compatible
    • Enable Beautiful Apps
    • Accelerate Development

    View full-size slide

  13. Jetpack Compose
    13

    View full-size slide

  14. Dark Mode
    15
    • Can reduce power usage by a significant amount
    • Improves visibility for users with low vision and
    sensitive to bright light.
    • Easier to use a device in a low-light environment.

    View full-size slide

  15. Dark Mode
    16
    • Can reduce power usage by a significant amount
    • Improves visibility for users with low vision and
    sensitive to bright light.
    • Easier to use a device in a low-light environment.

    View full-size slide

  16. Dark Mode
    17
    • <br/>• <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"><br/>

    View full-size slide

  17. Dark Mode
    18
    • Light - MODE_NIGHT_NO
    • Dark - MODE_NIGHT_YES
    • Set by Battery Saver -
    MODE_NIGHT_AUTO_BATTERY
    • System default - MODE_NIGHT_FOLLOW_SYSTEM

    View full-size slide

  18. Dark Mode Force Dark
    19
    • Easy way to implement dark mode
    • Intellegently converts theme to dark on Android
    Q
    • android:forceDarkAllowed="true"

    View full-size slide

  19. Gesture Navigation
    20
    • Unifies gestural navigation on Android Q
    • Swipe up from bottom navigates to home
    • Swipe left and right from edges navigates back

    View full-size slide

  20. Security&Privacy
    22
    • Jetpack Security Library
    • Location permission changes on Q
    • Apps won't be able to turn on/off the WiFi on Q
    • SYSTEM_ALERT_WINDOW permission is
    deprecated on Q, Use Chat bubbles instead.

    View full-size slide

  21. CameraX
    23
    • Unifies Camera library usage
    • Features like Portrait, HDR, Night, and Beauty
    • Able to take add ons
    • Works on 90% of devices

    View full-size slide

  22. CameraX
    24
    • Unifies Camera library usage
    • Features like Portrait, HDR, Night, and Beauty
    • Able to take add ons
    • Works on 90% of devices

    View full-size slide

  23. View Bindings
    25
    • Similar to DataBindings
    • No annotation processing so faster at compile

    View full-size slide

  24. Thank you
    Questions?
    26

    View full-size slide