Skip navigation

Run a background thread in a job

Run a background thread in a job: Android Development: Concurrent Programming
Run a background thread in a job: Android Development: Concurrent Programming

Jobs run with the scheduler in the main thread. If you need a background thread, such as when you're making a network request, you need to manage that yourself. You can do this with Java Thread objects or with the AsyncTask framework. Because the code is running in a service, an AsyncTask isn't vulnerable to device configuration changes, so that would work fin—but in this demonstration, a simple thread is used.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 52m
Duration
18,680
Views
Show More Show Less
Skills covered in this course
Developer Mobile Apps Android

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month