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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:29:26+00:00 2026-06-01T04:29:26+00:00

Now I got a TabHost with several tabs, and in order to simplify the

  • 0

Now I got a TabHost with several tabs, and in order to simplify the views and reuse TextViews I have created the TabHost in such a was that common information resides in the TabHost view, instead of all Tabs having the same TextViews.

Here is a quick schematic of the TabHost view.

|------------|
| name  $$$  |
|------------|
| TabContent |
|            |
|            |
|------------|
|Tab Tab Tab |
|------------|

The main Activity that extends TabActivity is MainActivity, and I have started the three tabs using Intent.

Now for the issue at hand, in the StatusActivity I would like to update the ‘name’ and ‘$$$’ textviews (which both are defined in the view belonging to the MainActivity.

Maybe this is a stupid way to handle this, but I figured that since Name and Rank will be shown on every view I figured that placing them one place and just updating $$$ when the sum changes was a good idea.

But whatevery to try, I can’t seem to get the $$$ TextView.

  • 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-01T04:29:27+00:00Added an answer on June 1, 2026 at 4:29 am

    Try that:

    TabActivity ta = ((TabActivity) getParent());
    

    So that, if you want to get the TabHost:

    ((TabActivity) getParent()).getTabHost();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have done some learning on struts based on one project that i got.Now
We integrated a wysiwyg editor in our website. Now we got the problem that
Right now I've got a mod_wsgi script that's structured like this.. def application(environ, start_response):
Right now we've got a hard-coded set of characters that we check for --
I have three tabs that each has its own Activity. The tabs are as
Okay, so i am making an android app that has tabs, now my problem
I have created TabActivity class in which i am creating four tabs for my
HI, I have almost solved this but have now got stuck! What I need
I am creating a three tabs that contains one fragment each now I want
I have created a tab host. Now when I set the background of each

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.