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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:40:11+00:00 2026-06-08T08:40:11+00:00

I am using a android.support.v4.view.ViewPager and wish to page through its views quickly. Currently,

  • 0

I am using a android.support.v4.view.ViewPager and wish to page through its views quickly.

Currently, each ListFragment view within my ViewPager needs to access a web service before it can display its list. I do this by retrieving data and calling setListAdapter within the Fragments onCreate method. This causes the ViewPager to “hang” when swiping between it’s views due to the delay retrieving data from the web service.

Is there a way to load data from the web service asynchronously and populating the list when all data is retrieved? Ideally, I want to page through the ViewPager quickly and display a loading indicator whilst each child ListFragment loads its required data.

Note: I have tried using an ASyncTask to call the web service and set the list adapter but have had issues calling an ASyncTask from within an ASyncTask. A I on the right track or is there a better way?

Thanks

  • 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-08T08:40:12+00:00Added an answer on June 8, 2026 at 8:40 am

    Is there a way to load data from the web service asynchronously and populating the list when all data is retrieved?

    Kick off an AsyncTask to load the data.

    Note: I have tried using an ASyncTask to call the web service and set the list adapter but have had issues calling an ASyncTask from within an ASyncTask

    You cannot invoke another AsyncTask from doInBackground() of an AsyncTask.

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

Sidebar

Related Questions

I am using the ViewPager from the Android Support package (android.support.v4.view.ViewPager). My ViewPager layout
I am using the android ViewPager : http://developer.android.com/reference/android/support/v4/view/ViewPager.html This class allows you to basically
I'm using Android-support-v4 I have a PagerAdapter that displays a list fragment in each
I am using Android's support.v4 package to develop a ViewPager containing multiple Fragment s.
Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a
I have created following thing in android using android compatibility support package Basically i
I recently downloaded the Android Support Package and have been using it trying to
I'm using Google API 8 (Android 2.2) with support package v4. It doesn't give
I am using A custom viewpager with a PagerTitleStrip, both supported by the android
Building an app using android.support.v4.app , targeting API level 8. Everything's working as planned

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.