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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:08:00+00:00 2026-05-23T09:08:00+00:00

progress dialog doesnt work while listing data with listAdapter i think its all about

  • 0

progress dialog doesnt work while listing data with listAdapter

i think its all about sending activity to myAdapter

final myAdapter adapter = new myAdapter(rss_list_activity.this, liste);


    final ProgressDialog dialog = ProgressDialog.show(this, "Title", 
            "Message", true);
    final Handler handler = new Handler() {
           public void handleMessage(Message msg) {
              dialog.dismiss();
              }
           };
        Thread checkUpdate = new Thread() {  
           public void run() {
        getListFromXml();
        lv.setAdapter(adapter);
              handler.sendEmptyMessage(0);
              }
           };
        checkUpdate.start();
  • 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-23T09:08:00+00:00Added an answer on May 23, 2026 at 9:08 am

    here’s some information on threading, i would use an AsyncTask if I were you:

    http://developer.android.com/resources/articles/painless-threading.html

    Something similar to this should work:

    LoadListTask tsk = new LoadListTask();
    tsk.execute((Void) null);
    

    with this somewhere

    private class LoadListTask extends AsyncTask<Void, Void, List<theType>>
    {
        final ProgressDialog dialog;
    
        @Override
        protected void onPreExecute()
        {
            super.onPreExecute();
            dialog = ProgressDialog.show(MainClass.this, "Title", "Message", true);
        }
    
        @Override
        protected void onPostExecute(List<theType> result)
        {
            super.onPostExecute(result);
            final myAdapter adapter = new myAdapter(rss_list_activity.this, result);
            lv.setAdapter(adapter);
            dialog.dismiss();
        }
    
        @Override
        protected List<theType> doInBackground(Void... params)
        {
            return getListFromXml();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to dismiss a progress dialog but it doesnt seem to work
I was following the progress dialog example in the ApiDemos. all went great except
I am trying to add a progress dialog when a new activity is launched
I have a problem with progress dialog on opening an activity (called activity 2
EDIT: If I do not use the progress at all, just showing the dialog,
I'm beginning to think that to get a ProgressDialog to work the AsyncTask has
I would like a progress bar to appear in the console window while a
I'm trying to customise the standard WiX Progress Dialog (I want to make it
I am using an activity with the dialog theme set, and I want it
What would be the best way to use a progress dialog in the following

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.