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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:06:51+00:00 2026-05-20T05:06:51+00:00

I have a TV Guide activity which extends TabActivity. The tabs are labelled (example)…

  • 0

I have a TV Guide activity which extends TabActivity. The tabs are labelled (example)…

Today|Wed|Thu|Fri|Sat|Sun|Mon

The TabHost.TabSpec content of each is set to another activity (GuideListActivity) which extends ListActivity like so…

private void AddGuideTab(String tag, String indicator, String startDate, String endDate) {
    Intent intent = new Intent().setClass(this, GuideListActivity.class);

    // Set other Intent stuff

    TabHost.TabSpec spec = tabHost.newTabSpec(tag).setIndicator(indicator).setContent(intent);
    tabHost.addTab(spec);
}

This gives me a 7 day list of all the TV shows for one channel. All good so far.

The problem is how to cleanly recreate all of this when the user wants to view another channel’s listings….

I have a button which the user can press which creates a popup ‘channel selector’ dialog. The dialog correctly returns the new channel name/number but I can’t figure out how to either remove each TabSpec/GuideListActivity in order to start again nor tell the existing GuideListActivity that it needs to repopulate its ListView.

What am I missing? I seem to be going round in circles reading the docs.

  • 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-20T05:06:52+00:00Added an answer on May 20, 2026 at 5:06 am

    My main problem was in how to notify each GuideListActivity that the channel had been changed.

    I solved this by creating a nested class in the GuideListActivity which extends BroadcastReceiver and the TabActivity now uses sendStickyBroadcast(); to send a sticky Intent containing the current channel selection. Each time a GuideListAvtivity is resumed, it can check the sticky Intent and adjust its ListView if the channel selection has changed.

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

Sidebar

Related Questions

I have a table which contains TV Guide data. In a simplified form, the
I want to create an Application with tabs, and I have found this guide
This seems like a simple problem: I have a WF4 activity that guides the
I have followed this guide: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html I have created a maven-plugin project hello-maven-plugin with
I have followed this guide to install Solr in TomCat running on Windows Server
I am going through Programming Ruby - a pragmatic programmers guide and have stumbled
Study guide question: I have no idea what the difference is between writing it
Have done quite a bit of searching for a guide (of any substance) for
I have used the following article as a guide to creating a custom EditorPart
I have been trying to find a good guide to create a templated control.

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.