Creating a new Asynchronous Task

To create a new asynchronous task you need to extend AsyncTask, as shown in the skeleton code of Listing 9-9. Your implementation should specify the classes used for input parameters on the execute method, the progress-reporting values, and the result values in the following format:

AsyncTask<[Input Parameter Type], [Progress Report Type], [Result Type]>

If you don't need or want to take input parameters, update progress, or report a final result, simply specify Void for any or all of the types required.

Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide


Post a comment