ankush0939 / DevBytes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DevByteWorkManager - Solution Code

Solution code for the WorkManager codelab.

Introduction

DevByteWorkManager 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. This app fetches the DevByte video playlist from the network using the Retrofit library and displays it on the screen. The network fetch is scheduled periodically once a day using the WorkManager. Constraints like device idle, unmettered network and so on are added to the work request to optimise the battery performance.

Pre-requisites

You need to know:

  • How to open, build, and run Android apps with Android Studio.
  • The Android Architecture Components like, ViewModel, LiveData, and Room.
  • Building and launching a coroutine.
  • Read the logs using the Logcat.
  • Binding adapters in Data Binding.
  • How to use Retrofit network library.
  • Loading cached data using a Repository pattern.

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


Languages

Language:Kotlin 100.0%