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

  • Home
  • SEARCH
  • 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 6126495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:22:52+00:00 2026-05-23T16:22:52+00:00

So I have a method in my android program that takes a long time

  • 0

So I have a method in my android program that takes a long time to process since it has some implementation in fetching data from the internet.

I wanted to put this process in the background and have it update the UI when it completes but not prevent the user from seeing the program.

The problem is though I just have it all in one method (This function that takes a few seconds). I know it works properly and from what I’ve seen with ASyncTask I would need to split it up for it to utilize ASyncTask.

Is there anyway I can just do something so that this one in particular method can just be put on another thread? It seems extraneous to have to split up something that already works :-/

Edit: Solved, I ended up just using ASyncTask and taking the time to understand it. I only need to tinker two or three lines and it works perfectly now.

  • 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-05-23T16:22:53+00:00Added an answer on May 23, 2026 at 4:22 pm

    You can always just use a Thread and Handler combo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an android app that takes an array from a website {d:[{latitude:-1.0,longitude:-1.0,time:07:14 PM
It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method
I have a Runnable that transfers data(a few hundred files) from an android device
For a program that I have written myself, is there a method of accessing
i'm new at Android world, and i have a doubt, is there any method
I have method in a class that I need to make sure is only
I have a method which takes params object[] such as: void Foo(params object[] items)
I have class method that returns a list of employees that I can iterate
I have a method that where I want to redirect the user back to
I have a method in my Python code that returns a tuple - a

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.