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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:02:25+00:00 2026-05-26T00:02:25+00:00

I have an application with tabs and every tab has HttpCLient that is triggered

  • 0

I have an application with tabs and every tab has HttpCLient that is triggered every time user clicks on the tab and a page is downloaded in a tabActivity thread. When user clicks on tab and then switches to another one, he must wait for a few seconds, so that the request will be sent to server and reply received. I want to make switching between the tabs asynchronous from the HttpClients. It did not work even when i put requests in threads and it even did not work when I introduced TabGroupActivity on every tab.
I have a separate class with all the requests to the server. SHould i extend this class with asyncTask? (This is actually the last thing i have been thinking about that could help)


EDIT:
On every tab onPause i am doing Thread.join() nad it seems that it is the action that slows down all the process of comming back to the same tab

  • 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-26T00:02:25+00:00Added an answer on May 26, 2026 at 12:02 am

    to prevent UI from blocking, all potentially slow running operations (such as networking) should run in the background, e.g. via some way of concurrency such as Asynctask.

    I think Asynctask is better choice (comparing with threading) because it encapsulate everything into a single class, and is native android. (e.g. you don’t need to use RunOnUIThread when using this class)

    read this article for more information: http://www.vogella.de/articles/AndroidPerformance/article.html

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

Sidebar

Related Questions

i have an application that has a tabActivity and 3 tabs. all off the
I'm developing an iPhone application that have a TabBarController with two tabs. Each tab
I have several tabs in my application, and each tab loads a different sub-page
I have an application that has a UITabBarController with two tabs, each having its
I have an tabbar-application with four tabs. Every tab loades an nib with its
I have an iphone application which has about 4 tabs. How do I force
I have a tab bar iPhone application with 4 tabs. In the Interface Builder
I have 4 tabs in my iphone application. When user will click a button
I have a tab bar application that contains navigation views in 2 of its
I have a TabActivity with several tabs. Each tab corresponds to a specific view,

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.