Android Architecture Components   Part of Android Jetpack.

Android architecture components are a collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.

  • Manage your app's lifecycle with ease. New lifecycle-aware components help you manage your activity and fragment lifecycles. Survive configuration changes, avoid memory leaks and easily load data into your UI.
  • Use LiveData to build data objects that notify views when the underlying database changes.
  • ViewModel Stores UI-related data that isn't destroyed on app rotations.
  • Room is an a SQLite object mapping library. Use it to Avoid boilerplate code and easily convert SQLite table data to Java objects. Room provides compile time checks of SQLite statements and can return RxJava, Flowable and LiveData observables.

Latest news and videos

Additional resources

  • Try Android room with a view, a codelab that shows how to use Room, ViewModel, and LiveData.
  • The Sunflower demo app demonstrates best practices with architecture components.
  • The Github Browser Sample uses architecture components with Dagger 2.
  • Our Github repo contains other small samples demonstrating how to use architecture components.