Tasks

I’m trying to write a task that runs a program that takes in two parameters and then does something. How do I go about passing the parameters through the task and to the function? Could I get an example of a successfully written task taking in extra parameters? Thanks.

In C++ this is done by creating a structure or class and storing whatever parameters on that structure, then passing its pointer in as the void * parameter to GenericAsyncTask.

Or, simply subclass from AsyncTask and add whatever parameters you need directly to your new class type.

David