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
5,262
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