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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:51:08+00:00 2026-06-15T02:51:08+00:00

Will an application ever crash when changing text, background resource and inflating some views

  • 0

Will an application ever crash when changing text, background resource and inflating some views in it in a background thread, if the view’s visibility is GONE? I’ve done some tests with two buttons, one visible and one gone, and when I changed text of the visible one in a background thread, it crashed, and when I changed the text of the button with the GONE visibility, it worked without a crash. Can someone explain this?

  • 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-15T02:51:09+00:00Added an answer on June 15, 2026 at 2:51 am

    Ok, I have a something for you.

    Event Handling and Threading

    The basic cycle of a view is as follows:

    1. An event comes in and is dispatched to the appropriate view. The
      view handles the event and notifies any listeners.

    2. If in the course of processing the event, the view’s bounds may need
      to be changed, the view will call requestLayout().

    3. Similarly, if in the course of processing the event the view’s
      appearance may need to be changed, the view will call invalidate().

    4. If either requestLayout() or invalidate() were called, the framework
      will take care of measuring, laying out, and drawing the tree as
      appropriate.

    Note: The entire view tree is single threaded. You must always be on the UI thread when calling any method on any view. If you are doing work on other threads and want to update the state of a view from that thread, you should use a Handler.

    You can find much more here http://developer.android.com/reference/android/view/View.html .

    In your case Your View is already GONE so I think its not attached to View Tree.

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

Sidebar

Related Questions

I'm looking to write an application that will grab some basic information from the
I am building an application that will add views to a relative layout until
My application will be hosted in a shared hosting provider with a limit of
My application will have a per machine (not per user) Startup shortcut. I can
Please note this application will never be running on a server system. I am
Please tell me will BlackBerry application till OS 7.1 work for new BlackBerry OS
I'm writing an application which will involve interaction with the database. The application will
Every page on my application will display 1000 records and they are only needed
Basically multiple instances of our application will be launched but they need to have
I am working on web application that will use PHP & MySQL. Application will

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.