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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:24:26+00:00 2026-06-09T12:24:26+00:00

I have developed an Android App which will go live in few days. I

  • 0

I have developed an Android App which will go live in few days.

I have come across a different problem when testing the app on ICS.
It is working fine on Pre-GingerBread and GingerBread version devices. It is throwing NetworkOnMainThreadException when tested ICS device and managed to remove that by putting HTTP Calls in AsyncTask.

But my issue is I am making 4 to 5 different HTTP Url calls and calling every url require a AsyncTask as these URLs should execute concurrently one after other.

If result of one url is failed next one should not be called and that should updated on UI. So I am taking an AsyncTask for each URL Call.

Can we have many AsyncTasks in a Single Fragment or not. As of I Managed to have Maximum 3 AsyncTask in my Fragment Class.

If so can we start executing another AsyncTask from first AsyncTask PostExecute method.

Thanks in Advance.

  • 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-09T12:24:27+00:00Added an answer on June 9, 2026 at 12:24 pm

    You can put all the HTTP calls in one ASyncTask and report back with the publishProgress callback. When one fails, you can stop that ASyncTask and the others won’t be called.

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

Sidebar

Related Questions

I have an app on android market. Which was developed by a developer. He
I want to develop an Android app in which I have key log press.
I have developed my app in android 2.2, and put it on google market
I have developed a android application using phonegap. I have registered certain recievers which
I have developed some reusable android component which is basically a class . This
I have been developing an Android app and testing with a 1.5 AVD and
I have developed a very simple Android native app to launch my HTML5 webapp.
Is there something like AlarmManager(Android) in WindowsPhone7 mango, which will launch the app when
http://developer.android.com/tools/publishing/app-signing.html I have a keystore that I already have an alias and password for.
I have to develop an App for Android tablets that demands printing files to

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.