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.
Was this article helpful?
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.