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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:54:39+00:00 2026-05-22T20:54:39+00:00

In an android activity I have a lenghty process in building a report (view).

  • 0

In an android activity I have a lenghty process in building a report (view). I would like to show a progress dialog “Building Report..Please Wait” while the view is being created. Is it possible to start and activity (screen switch) and then show a progress dialog and then present the view?

I guess alternatively I could build the view on a background thread from the main activity while showing a progress dialog and then once the view is created I could start the next activity and present the built view.

What is the best way to handle something like this, i.e. show feedback while a complex view is being built? The view has to be built in code, not XML, and with the iterations of the data it can be a few seconds. I want the application to appear responsive.

Thank you.

  • 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-22T20:54:40+00:00Added an answer on May 22, 2026 at 8:54 pm

    I figured this out. I show the progress dialog and then start a background task which has the setcontentView in the RunOnUiThread element and hide the progress dialog.

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

Sidebar

Related Questions

I have an Android activity with an ImageButton. I would like to execute some
I have an Android activity running with a custom view in it. When something
I have a very simple Android activity layout like this: <?xml version=1.0 encoding=utf-8?> <LinearLayout
I have two threads in an Android application, one is the view thread, and
I have an Android Activity that uses a class that I developed that extends
I have an Android activity which in turn starts a thread. In the thread
I have an android activity in which I'm using tabs. public class UnitActivity extends
I have an Android Activity with a RelativeLayout and I have implemented the following
I have an Android activity that displays a list of log entries (using a
I would like to improve the load of my activities in my Android app.

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.