Skip navigation

Run a background thread with AsyncTask

Run a background thread with AsyncTask: Android Development: Concurrent Programming
Run a background thread with AsyncTask: Android Development: Concurrent Programming

Android provides a framework for managing threads and handlers, called the AsyncTask class. It does much the same thing that you do with the lower level Thread class, but makes it easy to communicate with the main thread. To use this framework, create a custom class that extends AsyncTask. You can do this in a public class or in any other top-level class, but if your goal is easy communication with the UI, it’s common to define your custom task class in the Activity class it’ll be working with.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 52m
Duration
18,530
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