I am trying to call an AsyncTask from a spinner (depending on the option chosen will send something or other), but I get problems with a method I have in AsyncTask class and will not let me run it properly.
I’m getting the following error message:
The method setOnResultsListener(OnTaskCompleted) in the type Conexion is not applicable for the arguments (new AdapterView.OnItemSelectedListener(){})
In your AsyncTask class, change this
to this:
And in your MainActivity, change this
to this: