Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8986347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:31:41+00:00 2026-06-15T21:31:41+00:00

I am trying to call an AsyncTask from a spinner (depending on the option

  • 0

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(){})

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:31:42+00:00Added an answer on June 15, 2026 at 9:31 pm

    In your AsyncTask class, change this

    public void setOnResultsListener(OnTaskCompleted listener) {
        this.listener = listener;
    }
    

    to this:

    public Conexion(OnTaskCompleted listener) {
        this.listener = listener;
    }
    

    And in your MainActivity, change this

    Conexion conexion = new Conexion();
    conexion.setOnResultsListener(this);
    conexion.execute("tipo");
    

    to this:

    new Conexion(MainActivity.this).execute("tipo");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to call a method that will add or subtract 1 from a
I'm trying to start an Activity in my AsyncTask from the doInBackground() method but
I am calling a webservice from an AsyncTask. It works fine but i'm trying
Im trying to call image_tag image.jpg from devise Mailer template but since its an
Trying to call a SAP SOAP Web Service from a generated sudzc app shows
I'm trying to call a method from another class with a simple button in
I'm trying to call a function present in one class from another class by
I am trying to call c# function from javascript the code i have tried
I'm trying to get an AutoCompleteTextView(ACTV) to display results I'm a getting from a
I'm trying to open android's own camera application from my application.It is working!But i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.