Android Development Essential Training: 4 Working with Data
1h 49mBeginner2021-06-18
Authors

Annyce Davis
Engineering leader, international conference speaker, and author.
Course details
Do you develop Android apps? Are you wondering how to get started or wondering how to improve? This series of courses covers the essentials you must know to develop, design, and manage a native Android application. In this course, the fourth part in a four-part series, instructor Annyce Davis focuses on data, with hands-on challenges to check your understanding. Annyce explains the various types of data processing available in Android. She shows you how to package static data in JSON files, to make it easier to work with data in your application. Annyce steps through using LiveData objects, HTTP clients, a Retrofit interface, and more to get data from a web service. She discusses how you can use a RecyclerView to display different types of data in your app, then concludes by walking you through ways to display data that a user selects.
Skills covered
Android DevelopmentAndroidMobile DevelopmentGoogleEssential Training
Concepts
Introduction
- Developing data-driven apps
- What you should know
- Following along with the course
Package Static Data in JSON Files
- Model an entity in a Kotlin data class
- Read files from resources
- Read files from assets
- Parse JSON strings with Moshi
- Map JSON and class property names
- Challenge Show me the data
- Solution Show me the data
Get Data from a Web Service
- Share data with LiveData objects
- Explore HTTP clients
- Add Retrofit dependencies
- Define a Retrofit interface
- Retrieve remote data with Retrofit
Display Data in a RecyclerView
- Explore RecyclerViews
- Add a RecyclerView to a fragment
- Create a RecyclerView item layout
- Create a RecyclerView adapter class
- Bind data in a RecyclerView ViewHolder
- Display images dynamically with Coil
- Challenge Random pics
- Solution Random pics
Display Selected Data Items
- Handle RecyclerView click events
- Navigate to a detail fragment
- Pass data in a shared ViewModel
- Challenge Lights camera action
- Solution Lights camera action
Conclusion
- Next steps