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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:59:46+00:00 2026-06-01T10:59:46+00:00

Guess that I have a TextView that I want to update it in some

  • 0

Guess that I have a TextView that I want to update it in some situations. I want to have a thread that every one or two seconds checks the circumstances and updates TextView’s text if necessary.
Any Idea?

  • 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-01T10:59:48+00:00Added an answer on June 1, 2026 at 10:59 am

    You can use Handler, in your GUI:

    Handler hnd = new Handler() {
        public void handleMessage(Message msg) {
            if ( msg.what == 101 ) {
               //update textview
            }
        }
    }
    

    pass hnd to your thread, and in your thread do:

    Message m = new Message();
    m.what = 101;
    hnd.sendMessage(m);
    

    this assumes that in your separate thread you are doing some work that needs reporting to GUI thread, you can also send text messages

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

Sidebar

Related Questions

I have a TextView that I want to limit characters of it. Actually, I
I note that Scheme and Lisp (I guess) support circular lists, and I have
Delphi XE2, so I guess that is Indy 10(?). One server, 10 clients. I
I have an extended BaseAdapter that has LinearLayout children (an ImageView and a TextView
I have two TextViews that displays numbers from 1-6, I need to make a
So I have a TextView in android that has the width of the whole
Really confused regarding the use of a cursor. I have one activity that works
I have a ListView that contain several TextViews. Once a TextView is pressed I
I guess that the difficult part is the source. Do you know any webpage
I guess that the # Net column is the most interesting, although I don't

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.