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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:51:45+00:00 2026-05-26T21:51:45+00:00

i have an AsyncTask that gets executed when the app starts up. on a

  • 0

i have an AsyncTask that gets executed when the app starts up. on a galaxy S with android 2.1 on it, this AsyncTaks gets not always executed. i realize that there is a max of 5 AsyncTaks that can be running at the same time, but i actually assumed that this is per app and because this one is executed on the app startup i am certain that there are no other ones running at this point.

is there a way to check if the AsyncTask can be executed at this time or to increase the maximum number of running AsyncTasks or anything that might help me with that problem?

the AsyncTask itself is very simple and gets executed in the UI thread

new AsyncTask<Integer, Void, Void>(){
@Override
protected Void doInBackground(Integer... arg0) {
    …
    return null;
}

protected void onPostExecute(Void result) {
    …
}
}.execute(myVal);

thanks
Simon

  • 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-26T21:51:45+00:00Added an answer on May 26, 2026 at 9:51 pm

    OK, i’ve got it. there were some old AsyncTasks from previous app starts that got somehow stuck.

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

Sidebar

Related Questions

I have an AsyncTask that is executed before I move on to the next
I have android app that talks to server and syncs some data int SQLite
I have an activity that starts with an AsyncTask to check the connection to
So I have this AsyncTask that loads a WebView in onPostExecute that otherwise works
In my app I have a background task (using AsyncTask) that downloads stuff from
I have a list that gets refreshed every 2 seconds via the Handler postDelayed()
Is it at all possible, from within an AsyncTask that is NOT an inner
I have an AsyncTask that get info from the web. Sometimes the connection fails
I have an AsyncTask that queries a content provider and does some additional processing
I have an Activity Class with an inner protected class that extends AsyncTask. 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.