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

Keeping up with Modern Android Development

Keeping up with Modern Android Development

Talk presented at the Google DevFest Inspire 2021.

The talk was to share updates and what's new in Android development and how to keep your app up to date and how to stay up to date with new trends.

https://gdg.community.dev/events/details/google-developer-ecosystem-europe-team-presents-devfest-inspire/

Segun Famisa

December 09, 2021
Tweet

More Decks by Segun Famisa

Other Decks in Programming

Transcript

  1. Keeping Up With Modern
    Android Development
    Segun Famisa
    Google Developers Expert for Android
    [Location]

    View Slide

  2. introduction

    View Slide

  3. OS version changes

    View Slide

  4. types of OS changes

    View Slide

  5. types of OS changes
    ● new features
    ● behaviour changes - all apps
    ● behaviour changes - apps targeting the OS version

    View Slide

  6. View Slide

  7. targeting an OS version

    View Slide

  8. targeting an OS version
    minSdkVersion compileSdkVersion
    targetSdkVersion
    minimum possible
    version supported
    by the app
    google play uses
    this to know which
    devices can install
    the app
    used only in
    compiling and
    building the app.
    caution: always check
    OS version in code
    before using new
    APIs.
    allows you to “opt in”
    to the changes in the
    version.
    ideally, this would be
    the OS version your
    app officially
    “supports”

    View Slide

  9. targeting an OS version

    View Slide

  10. https://developer.android.com/about/versions/12/behavior-changes-12

    View Slide

  11. View Slide

  12. release lifecycle & timeline

    View Slide

  13. release lifecycle & timeline
    OS releases have a regular timeline

    View Slide

  14. release lifecycle & timeline
    OS releases have a regular timeline

    View Slide

  15. release lifecycle & timeline
    OS releases have a regular timeline
    This means you can plan ahead!

    View Slide

  16. new libraries &
    tools

    View Slide

  17. android studio/build updates
    ● new inspectors - database inspector, layout inspector,
    workmanager inspector
    ● android studio build analyzer (AGP 4.0+)
    ● android gradle plugin support for Java 11 source.
    See https://developer.android.com/studio/releases/gradle-plugin for
    more

    View Slide

  18. architecture components
    ● dependency injection
    ○ hilt
    ● lifecycle-aware components
    ○ livedata
    ○ viewmodel
    ● navigation...etc

    View Slide

  19. data
    ● datastore
    ○ more efficient alternative shared preference
    ● room
    ● workmanager
    ● paging

    View Slide

  20. performance
    ● benchmark
    ○ micro
    ○ macro
    ● tracing
    ● app startup
    ○ for initializing dependencies at app startup.

    View Slide

  21. ui
    ● material you
    ○ your apps running S+ can allow user-generated palette.
    ● jetpack compose
    ○ declarative UI tool
    ○ replaces the traditional view system

    View Slide

  22. how to stay up to
    date?

    View Slide

  23. community resources
    ● android weekly - https://androidweekly.net/
    ● kotlin weekly

    View Slide

  24. ● official courses - https://developer.android.com/courses
    ● compose pathway -
    https://developer.android.com/courses/pathways/compose
    ● android developers backstage - https://adbackstage.libsyn.com/
    ● codelabs - https://codelabs.developers.google.com/?cat=android
    ● android developers youtube -
    https://www.youtube.com/c/AndroidDevelopers
    official resources

    View Slide

  25. thank you for listening!

    View Slide