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 8202045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:01:48+00:00 2026-06-07T07:01:48+00:00

Basically I want start a few threads which execute serially one after the another.

  • 0

Basically I want start a few threads which execute serially one after the another. I’m using Thread.join() for it. But the application kinds of hangs out and goes in ANR state. I want to know that putting an AsyncTask inside a loop will execute all the tasks serially one after the another or will they be executing parallelly???

for(String s : list)
{
    new asynctask(s).execute();
}
  • 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-07T07:01:51+00:00Added an answer on June 7, 2026 at 7:01 am

    Basically I want start a few threads which execute serially one after
    the another.

    The thing immediately comes to my mind after reading this statement is You should consider using IntentService Rather than Creating new Tasks each time.

    Basically IntentService is

    The IntentService receives a request via the Intent, which includes
    some information about the task to be completed. This task is then
    added to a queue,Then all tasks are completed
    sequentially and asynchronously.

    The advantage of using IntentService would be

    It will guarantee that the operation will have at least “service process” priority, regardless of what happens to the activity.It is highly recommended when you want to download multiple files sequentially.

    Here you will find very good tutorial on how to implement IntentService.

    http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/

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

Sidebar

Related Questions

I'm trying to start the del command using System.Diagnostic.Process. Basically I want to delete
OK so basically I want to start listening for a single update from a
Basically I don't want the map to start automatically panning when someone is dragging
I basically want to do: git checkout branchA git checkout -b branchB <commit_id> which
Basically I want an arbitrarily large stack. I know that's not possible, but could
I asked a pretty similar question a few days ago, but this one is
I try to re-write a few of my older apps and want to start
I basically want something like: TextView Button Button . . . TextView TextView SeekBar
I basically want to setup a relationship similar to Netflix's DVD rental model. There
I basically want the same functionality as facebook, twitter and all those other infinite

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.