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
8,337
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 Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now