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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:54:52+00:00 2026-06-04T21:54:52+00:00

I have a bit of a problem I cannot solve, since it might a

  • 0

I have a bit of a problem I cannot solve, since it might a bug or something like that. I would like to make a chart with androidplot, and it works really good, but of course it needs some time to draw it (using hundreds of data), so I use a progress dialog to indicate the loading. But what happens is really weird.
I can define the appearance of the activity when it’s loading and when it’s loaded. When its loading I define a textview in the background setting its text to “loading” and if it is loaded, that textview contains lots of datas, text etc.

onCreate
{



        Thread thread = new Thread(new Runnable() {  
               public void run() {

-------what needs to be appeared after its loaded ----
Textview -> 12,3245,456,78,789

}

----what is on the screen while the progressbar is on---
TextView -> loading..
}

But most of the time after the progress dialog disappears, nothing happens, the textview still says “loading” and rarely it loads the datas and makes the data appear and changes the textview. What I noticed that the more data I would like to appear the rarelier it stays at the loading phase. Of course everytime the loading progessbar appeers then disappears.
Any Suggestion? It is really weird because I use it in a tablayout and other tabs never do this, always make the data appear.

Thanks in advance!

UP: Okay, its always the first tab, whatever it contains, so the first tab is somehow wrong…

  • 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-04T21:54:53+00:00Added an answer on June 4, 2026 at 9:54 pm
    The Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI 
    from a worker thread—you must do all manipulation to your user interface from
    the UI thread. Thus, there are simply two rules to Android's single thread model:
    
    1. Do not block the UI thread
    2. Do not access the Android UI toolkit from outside the UI thread 
    

    read this for more information on how to access UI elements from outside.
    edit::

    use AsyncTask ::

    onCreate
    {
    
         new myLoading().execute();    
    }
    
    class myLoading extends AsyncTask<Void, Void, Void>
    {
         protected Void doInBackground(Void ... ) {
          .......... do all the loading here .........
         }
         protected void onPostExecute(Void ) {
            Textview -> 12,3245,456,78,789
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i would play a bit with Ruby. Now i have a little problem, which
I have an interesting problem that I'm trying to solve and was wondering if
Hi I have got a problem that I can't solve when compiling the android
I have come across a problem I cannot seem to solve. I have a
I have bit of a problem with understanding PHYSICAL_ADDRESS structure in WDK. I thought
I have a bit of problem when trying to validate my page as HTML5.
I have a bit of a problem with my Google Maps application. So I'm
I have a bit of a problem. I am trying to do the following
I have a bit of a problem building my project. I'm getting the bellow
I have a bit of a problem here. I have a third party ActiveX

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.