Hands-on Background Services in Android

Video Description

Implement background services into Android Apps

About This Video

  • A comprehensive guide to building powerful background capabilities into Android apps.
  • Covers the latest techniques and code examples of Android.
  • Delve into using Android's background service capabilities effectively.

In Detail

This course helps developers who want to build applications working in the background, by exposing you to using Android Background Service capabilities effectively. Services come out as the best option with backward app compatibility.

You will learn a variety of topics like starting and stopping your service, interacting with the background service and creating and sending a work request, exploring the lifecycle of your service along with understanding the security issues in using it. You will learn to use IntentService, which utilizes a worker or background thread to execute tasks. You will explore what's new in the Background Service in Android Oreo and check out its limitations, and then overcome those limitations. You will then learn best practices and how to deal with problems and issues that might arise

By the end of the course, you will have a strong foundation in background services in Android and will be able to build the function you need to ensure you won't drain the battery excessively, compromise the user's security, consume too much data, or hamper the device's performance.

All the code and supporting materials for this course can be found at- https://github.com/PacktPublishing/Hands-on-Background-Services-in-Android

Table of Contents

  1. Chapter 1 : Exploring Background Service in Practical Apps
    1. The Course Overview 00:06:37
    2. Exploring Android Components 00:02:36
    3. Exploring Activity, Broadcast Receiver, and Content Provider 00:09:19
    4. Introduction to Service 00:05:11
    5. Types of Service 00:04:52
    6. Foreground Versus Background Service 00:09:59
    7. Understanding Threads and Processes 00:06:43
    8. Different Ways to Perform Background Operations 00:02:48
  2. Chapter 2 : Creating a Background Service
    1. Project Setup 00:05:36
    2. Implementing Background Service 00:06:09
    3. Start and Stop a Background Service 00:06:42
    4. Return Flags for Background Service 00:03:44
    5. Background Service Runs in Main Thread 00:05:26
    6. Using AsyncTask with Background Service 00:10:05
  3. Chapter 3 : Working with IntentService That Uses Worker Thread
    1. Why IntentService? 00:06:19
    2. Performing Operations Using IntentService in a Worker Thread 00:09:34
    3. Started Service Versus IntentService 00:02:27
  4. Chapter 4 : Interacting with Background Service
    1. Create and Send a Work Request to an IntentService 00:06:18
    2. Use Local Broadcasts to Interact with Background Service 00:03:10
    3. Reporting Work Status to the Calling Component 00:10:13
  5. Chapter 5 : Exploring the Lifecycle of a Service
    1. Exploring Lifecycle of Started Service 00:06:52
    2. Importance of Lifecycle Methods 00:02:37
    3. Enhancing Application Security Using Started Service 00:06:33
  6. Chapter 6 : Background Service Limitations and Work Around
    1. What’s New for Background Execution in Android Oreo 00:08:31
    2. Background Service Limitation 00:11:23
    3. Work Around – JobIntentService 00:04:14
    4. Demo – JobIntentService 00:11:55
  7. Chapter 7 : Troubleshooting Background Service
    1. Best Practices for Implementing Background Service in Apps 00:04:44
    2. In Conclusion the Next Steps 00:01:28

Product Information

  • Title: Hands-on Background Services in Android
  • Author(s): Book of Brains
  • Release date: April 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788993807