Jetpack is the new release that was recently announced by Google at I/O 2018 which has promised to make Android app development interesting and easier for the platform. It is the next generation of Android APIs.
What is Android Jetpack?
It is a set of libraries, tools and a guidance to help make the development process quick and easy for the most amazing android applications. It also provides the developers with the most common infrastructure code so that their focus does not shift from making a unique application.
What’s new
1. WorkManager
2. Paging
3. Navigation
4. Android KTX
5. Slices
~ WorkManager
It is the perfect solution for restriction-based background jobs that need approved execution, substituting the need for jobs or SyncAdapters.
Features
1. Easy to schedule
2. Easy to update current job
3. Easy to create job graph (Execute dependent job in sequential flow -> one after another)
4. Easy to get current state of your job
5. Ability to work on devices with or without Google Play Services.
6. Easy to cancel
Important Links
1. Work Manager Introduction
2. Work Manager Code Lab
3. Work Manager Blog
~ Paging
Pulling large data from database is made easy using paging component. It is very useful for lazy loading and infinite scrolling in your recyclerview.
Important Links
1. Paging Library Introduction
2. Paging Library Blog
3. Paging Code Lab
Navigation component helps developers to structure their app navigation using built in tool. It is focused on making a single activity app as the preferred architecture. It automatically manages up and back navigation of your app, when to show up arrow and when not. It is very useful for deep link functionality, no more back stack management and fragment transaction.
Important Links
1. Navigation Component Introduction
2. Navigation Component Code Lab
3. Navigation Component Blog
~ Android KTX
One goal of Android Jetpack is that it takes advantage of Kotlin language features that makes the developer more productive. Android KTX helps to takes advantage of Kotlin language features to reduce even more code.
Important Links
Android KTX Introduction
Important Links
1. Slices Introduction
2. Slices Code Lab
3. Slices Blog
Conclusion
Android Jetpack has come like a boon for the Android app developers as it will accelerate the development process, eliminates boilerplate code so you can focus on things that are more important and helps you to build high quality robust apps.