Skip to content

a codelab demonstrating how to work with repositories for offline caching. The project uses Retrofit to fetch videos from youtube and uses Room Database for caching

Notifications You must be signed in to change notification settings

Josee5691/DEVBYTE-

Repository files navigation

DevByte - Starter Code

Use as starter code for the Repository codelab.

Introduction

DevByteViewer app displays a list of DevByte videos. DevByte videos are short videos made by the Google Android developer relations team to introduce new developer features on Android. They're also a great way to stay up to date with new features as they come out as well as tips and best practices. This app fetches the DevByte video list from the network using the Retrofit library and displays it on the screen. It uses a ViewModel and LiveData to hold the data and update the UI. Since the video list is big, results are displayed in a RecyclerView.

Pre-requisites

You need to know:

  • How to open, build, and run Android apps with Android Studio.
  • How to use the Navigation Architecture Component
  • Passing the data between navigation destinations.
  • Read the logs using the Logcat.
  • Android architecture components: ViewModel and LiveData.
  • How to use Retrofit network library.

Getting Started

  1. Download and run the app.
  2. You need Android Studio 3.2 or higher to build this project.

License

Copyright 2019 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

a codelab demonstrating how to work with repositories for offline caching. The project uses Retrofit to fetch videos from youtube and uses Room Database for caching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published