Skip to main content

Featured post

Background Work with WorkManager - Java

Background Work with WorkManager - Java WorkManager is a compatible, flexible, and simple library for deferred background work that is covered in this codelab. WorkManager is the recommended task scheduler on Android for deferred work that must be completed. Description In this course, you will : Adding WorkManager to your project Scheduling a simple task Input and output parameters Chaining work Unique work Displaying work status in the UI Cancelling work Work constraints Syllabus : Add WorkManager to your app Make your first WorkRequest Add Input and Output ...

Android Room with a View - Java

Android Room with a View - Java

This codelab is primarily concerned with Android Architecture Components. Off-topic ideas and code are available for you to copy and paste. This codelab contains all of the code required to build the entire app.

Description

In this course, you will learn :

How to design and build an app using the Architecture Components Room, ViewModel, and LiveData, and how to create an app that does the following:

  • Implements our recommended architecture using the Android Architecture Components.
  • Works with a database to get and save the data, and pre-populates the database with some words.
  • Displays all the words in a RecyclerView in MainActivity.
  • Opens a second activity when the user taps the + button. When the user enters a word, adds the word to the database and the list.

Syllabus :

  • Using the Architecture Components
  • Create your app
  • Update Gradle files
  • Create an entity
  • Create the DAO
  • The LiveData class
  • Add a Room database
  • Create the Repository
  • Create the ViewModel
  • Add XML layout
  • Add a RecyclerView
  • Populate the database
  • Add NewWordActivity
  • Connect with the data
Enroll for Free

Comments

Popular Posts