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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:00:31+00:00 2026-06-16T16:00:31+00:00

Having a list view with some details, I have data inflated in list view

  • 0

Having a list view with some details, I have data inflated in list view from server. So on create of activity I have called a api to get data and inflated to list view once. And also pagination is there in list view,so on scroll to last item it will again call api for next page and append data of next page at end of list. This works fine.
But what I want is kind of auto referesh of list view data at some interval. Means list view to have kind of updated data.How I need to architecture my activity to obtain solution I want.

  • 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-16T16:00:32+00:00Added an answer on June 16, 2026 at 4:00 pm

    Try this:

    Handler mHandler = new Handler();
    Thread downloadThread;
    
    boolean isRunning = true;
    

    In onCreate() :

    downloadThread = new Thread(new Runnable() {
                @Override
                public void run() {
                    // TODO Auto-generated method stub
                    while (isRunning) {
                        try {
                            Thread.sleep(10000); // run at every 10 seconds
                            mHandler.post(new Runnable() {
    
                                @Override
                                public void run() {
                                    // TODO Auto-generated method stub
                                    // Write your code here to update the UI.
                                    updateListData();
                                }
                            });
                        } catch (Exception e) {
                            // TODO: handle exception
                        }
                    }
                }
            }); 
    
           downloadThread.start();
    

    Thanks.

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

Sidebar

Related Questions

Hi I've been having some trouble trying to get a list view I created
i have to show 3 columns in List view. I tried having table inside
I am having an Activity in which I am having some View that is
I have my Controller which pass Data from to view as below: IEnumerable<MovieDetails> jsonData
Im tryingh to create a list view but im having issues designing it how
I am having trouble with some Ruby on Rails code. I have a data
I have implemented one custom adapter for my list view having checkbox and text
I am having login view & after login some list is shown...so i want
I want to have a list view with each row having two buttons like
I have created one list view.. it is having 5 items... Now I want

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.