MAD Abilities Kotlin and Jetpack: wrap-up


Posted by Florina Muntenescu, Developer Relations Engineer

Kotlin and Jetpack image

We simply wrapped up one other sequence of MAD Abilities movies and articles – this time on Kotlin and Jetpack. We lined alternative ways wherein we made Android code extra expressive and concise, safer, and straightforward to run asynchronous code with Kotlin.

Try the episodes under to stage up your Kotlin and Jetpack information! Every episode covers a selected set of APIs, speaking each about find out how to use the APIs but in addition displaying how APIs work beneath the hood. All of the episodes have accompanying weblog posts and most of them hyperlink to both a pattern or a codelab to make it simpler to observe and dig deeper into the content material. We additionally had a stay Q&A that includes Jetpack and Kotlin engineers.

Episode 1 – Utilizing KTX libraries

On this episode we checked out how one can make your Android and Jetpack coding simple, nice and Kotlin-idiomatic with Jetpack KTX extensions. At present, greater than 20 libraries have a KTX model. This episode covers a number of the most essential ones: core-ktx that gives idiomatic Kotlin performance for APIs coming from the Android platform, plus just a few Jetpack KTX libraries that permit us to have a greater person expertise when working with APIs like LiveData and ViewModel.

Try the video or the article:

Episode 2 – Simplifying APIs with coroutines and Stream

Episode 2, covers find out how to simplify APIs utilizing coroutines and Stream in addition to find out how to construct your personal adapter utilizing suspendCancellableCoroutine and callbackFlow APIs. To get hands-on with this matter, take a look at the Building a Kotlin extensions library codelab.

Watch the video or learn the article:

Episode 3 – Utilizing and testing Room Kotlin APIs

This episode opens the door to Room, peeking in to see find out how to create Room tables and databases in Kotlin and find out how to implement one-shot droop operations like insert, and observable queries utilizing Stream. When utilizing coroutines and Stream, Room strikes all of the database operations onto the background thread for you. Try the video or blog post to learn how to implement and take a look at Room queries. For extra hands-on work – take a look at the Room with a view codelab.

Episode 4 – Utilizing WorkManager Kotlin APIs

Episode 4 makes your job simpler with WorkManager, for scheduling asynchronous duties for instant or deferred execution which can be anticipated to run even when the app is closed or the machine restarts. On this episode we go over the fundamentals of WorkManager and look a bit extra in depth on the Kotlin APIs, like CoroutineWorker.

Discover the video here and the article here, however nothing compares to sensible expertise so undergo the WorkManager codelab.

Episode 5 – Neighborhood tip

Episode 5 is by Magda Miu – a Google Developer Professional on Android who shared her expertise of leveraging foundational Kotlin APIs with CameraX. Test it out right here:

Episode 6 – Reside Q&A

Within the ultimate episode we launched right into a stay Q&A, hosted by Chet Haase, with friends Yigit Boyar – Structure Parts tech lead, David Winer – Kotlin product supervisor, and developer relations engineers Manuel Vivo and myself. We answered questions from you on YouTube, Twitter and elsewhere.

Recent Articles

The Ultimate Guide to Leaf Guard Adelaide: Protecting Your Property from Unwanted Pests

Is an investment in leaf guard installation a sensible proposition? Do you frequently deal with pests in your yard...

Gardening Pro Talks About the Many Advantages of Artificial Grass Gold Coast

Artificial grass may have been associated with a bad reputation before, but times have changed. Experts recommend the switch...

AT&T maintains 5G pace lead, however T-Cell is catching up: RootMetrics

Supply: Hayato Huseman / Android Central RootMetrics measures cellular community efficiency by testing the 125 most populated metros within the U.S. each six months and...

Niantic Will Launch AR Recreation Transformers: Heavy Metallic Later This 12 months

In Transformers: Heavy Metallic, you’ll staff up wit Bumblebee and the Autobots in the actual world. The sport will gentle launch in choose nations...

Related Stories

Stay on op - Ge the daily news in your inbox