Hands-on Background Services in Android [Video]

Preview in Mapt
Code Files

Hands-on Background Services in Android [Video]

Book of Brains
New Release!

Implement background services into Android Apps
Mapt Subscription
FREE
$29.99/m after trial
Video
$106.25
RRP $124.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$106.25
$29.99 p/m after trial
RRP $124.99
Subscription
Video
Start 14 Day Trial

Frequently bought together


Hands-on Background Services in Android [Video] Book Cover
Hands-on Background Services in Android [Video]
$ 124.99
$ 106.25
Hands-on GraphQL for Better RESTful Web Services [Video] Book Cover
Hands-on GraphQL for Better RESTful Web Services [Video]
$ 124.99
$ 106.25
Buy 2 for $35.00
Save $214.98
Add to Cart

Video Details

ISBN 139781788993807
Course Length3 hours and 2 minutes

Video Description

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

Style and Approach

A comprehensive course packed with step-by-step instructions, working examples, and helpful advice on working with Android Background services. This course is divided into clear chunks so you can learn at your own pace and focus on your own area of interest.

Table of Contents

Exploring Background Service in Practical Apps
The Course Overview
Exploring Android Components
Exploring Activity, Broadcast Receiver, and Content Provider
Introduction to Service
Types of Service
Foreground Versus Background Service
Understanding Threads and Processes
Different Ways to Perform Background Operations
Creating a Background Service
Project Setup
Implementing Background Service
Start and Stop a Background Service
Return Flags for Background Service
Background Service Runs in Main Thread
Using AsyncTask with Background Service
Working with IntentService That Uses Worker Thread
Why IntentService?
Performing Operations Using IntentService in a Worker Thread
Started Service Versus IntentService
Interacting with Background Service
Create and Send a Work Request to an IntentService
Use Local Broadcasts to Interact with Background Service
Reporting Work Status to the Calling Component
Exploring the Lifecycle of a Service
Exploring Lifecycle of Started Service
Importance of Lifecycle Methods
Enhancing Application Security Using Started Service
Background Service Limitations and Work Around
What’s New for Background Execution in Android Oreo
Background Service Limitation
Work Around – JobIntentService
Demo – JobIntentService
Troubleshooting Background Service
Best Practices for Implementing Background Service in Apps
In Conclusion the Next Steps

What You Will Learn

  • Delve into using Android background Service capabilities effectively
  • Get acquainted with the Main UI Thread, Worker or Background Thread, and Process, and understand how they are related to Services and their role in supporting Background Services
  • Perform longrunning tasks using background services
  • Use IntentService to execute tasks in your application
  • Pass data to a service and get back results from it
  • Master restrictions in using background services in Android Oreo along with workarounds such as using JobIntentService
  • Explore the lifecycle of your Service
  • Deal with common problems and issues that might arise when using the services in your live projects

Authors

Table of Contents

Exploring Background Service in Practical Apps
The Course Overview
Exploring Android Components
Exploring Activity, Broadcast Receiver, and Content Provider
Introduction to Service
Types of Service
Foreground Versus Background Service
Understanding Threads and Processes
Different Ways to Perform Background Operations
Creating a Background Service
Project Setup
Implementing Background Service
Start and Stop a Background Service
Return Flags for Background Service
Background Service Runs in Main Thread
Using AsyncTask with Background Service
Working with IntentService That Uses Worker Thread
Why IntentService?
Performing Operations Using IntentService in a Worker Thread
Started Service Versus IntentService
Interacting with Background Service
Create and Send a Work Request to an IntentService
Use Local Broadcasts to Interact with Background Service
Reporting Work Status to the Calling Component
Exploring the Lifecycle of a Service
Exploring Lifecycle of Started Service
Importance of Lifecycle Methods
Enhancing Application Security Using Started Service
Background Service Limitations and Work Around
What’s New for Background Execution in Android Oreo
Background Service Limitation
Work Around – JobIntentService
Demo – JobIntentService
Troubleshooting Background Service
Best Practices for Implementing Background Service in Apps
In Conclusion the Next Steps

Video Details

ISBN 139781788993807
Course Length3 hours and 2 minutes
Read More

Read More Reviews

Recommended for You

Hands-on GraphQL for Better RESTful Web Services [Video] Book Cover
Hands-on GraphQL for Better RESTful Web Services [Video]
$ 124.99
$ 106.25
Docker - Swarm, Services and Stack - Hands-On [Video] Book Cover
Docker - Swarm, Services and Stack - Hands-On [Video]
$ 196.99
$ 167.45
Hands-On Test Driven Development with Python [Video] Book Cover
Hands-On Test Driven Development with Python [Video]
$ 124.99
$ 106.25
Hands-On Web Development with Vue.js [Video] Book Cover
Hands-On Web Development with Vue.js [Video]
$ 124.99
$ 106.25
Hands-on with Go [Video] Book Cover
Hands-on with Go [Video]
$ 124.99
$ 106.25
Hands-on Application Development with Node.js [Video] Book Cover
Hands-on Application Development with Node.js [Video]
$ 124.99
$ 106.25