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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:01:38+00:00 2026-05-28T03:01:38+00:00

I’m trying to load an activity into a tab via an activity group but

  • 0

I’m trying to load an activity into a tab via an activity group but the activity isn’t loading which culminates in an illegalStateException error:

Here is a copy of the Log information:

01-10 11:01:06.201: INFO/WeatherClockWidgetProvider(582): updateTime
01-10 11:01:06.201: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): onTimeChanged
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 1
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 1
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 0
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 1
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): updateTime id = 3
01-10 11:01:06.211: INFO/WeatherClockWidgetProvider(582): updateCurrentTemperature
01-10 11:01:06.221: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:01:06.251: INFO/WeatherClockWidgetProvider(582): updateCurrentLocal
01-10 11:01:06.281: INFO/WeatherClockWidgetProvider(582): updateTemperatures
01-10 11:01:06.281: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:01:06.291: INFO/WeatherClockWidgetProvider(582): highT = 48
01-10 11:01:06.291: INFO/WeatherClockWidgetProvider(582): lowT = 43
01-10 11:01:06.291: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:01:06.301: INFO/System.out(8418): waiting for debugger to settle...
01-10 11:01:06.301: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:01:06.311: INFO/WeatherClockWidgetProvider(582): updateDate
01-10 11:01:06.311: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:01:06.311: INFO/WeatherClockWidgetProvider(582): updateWeatherDescription
01-10 11:01:06.321: INFO/WeatherClockWidgetProvider(582): updateUpdatedTime
01-10 11:01:06.321: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:01:06.341: ERROR/updateUpdatedTime dateString(582): 1/10/2012
01-10 11:01:06.371: ERROR/updatedTime before(582):  Update: JAN.10 9:10 AM
01-10 11:01:06.371: ERROR/updatedTime end(582):  Update: JAN.10 9:10 AM
01-10 11:01:06.441: INFO/WeatherClockWidgetProvider(582): bindViews
01-10 11:01:06.441: INFO/WeatherClockWidgetProvider(582): appWidgetId = 3
01-10 11:01:06.501: INFO/System.out(8418): waiting for debugger to settle...
01-10 11:01:06.701: INFO/System.out(8418): waiting for debugger to settle...
01-10 11:01:06.909: INFO/System.out(8418): waiting for debugger to settle...
01-10 11:01:07.110: INFO/System.out(8418): waiting for debugger to settle...
01-10 11:01:07.311: INFO/System.out(8418): debugger has settled (1316)
01-10 11:01:07.501: ERROR/gralloc(126): [unregister] handle 0x6335d0 still locked (state=40000001)
01-10 11:01:08.931: INFO/ActivityManager(126): Displayed activity com.PecAppsRadio/.tabs: 4886 ms (total 4886 ms)
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): updateAllElements
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): updateTime
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): onTimeChanged
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 1
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 1
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 0
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): mHour01HandIndex = 2
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): updateTime id = 3
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): updateCurrentTemperature
01-10 11:02:00.091: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:02:00.111: INFO/WeatherClockWidgetProvider(582): updateCurrentLocal
01-10 11:02:00.111: INFO/WeatherClockWidgetProvider(582): updateTemperatures
01-10 11:02:00.121: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:02:00.131: INFO/WeatherClockWidgetProvider(582): highT = 48
01-10 11:02:00.131: INFO/WeatherClockWidgetProvider(582): lowT = 43
01-10 11:02:00.131: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:02:00.141: INFO/WeatherClockWidgetProvider(582): changeFtoC
01-10 11:02:00.151: INFO/WeatherClockWidgetProvider(582): updateDate
01-10 11:02:00.151: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:02:00.161: INFO/WeatherClockWidgetProvider(582): updateWeatherDescription
01-10 11:02:00.161: INFO/WeatherClockWidgetProvider(582): updateUpdatedTime
01-10 11:02:00.161: INFO/WeatherClockWidgetProvider(582): setCalendarInstance
01-10 11:02:00.171: ERROR/updateUpdatedTime dateString(582): 1/10/2012
01-10 11:02:00.171: ERROR/updatedTime before(582):  Update: JAN.10 9:10 AM
01-10 11:02:00.171: ERROR/updatedTime end(582):  Update: JAN.10 9:10 AM
01-10 11:02:00.201: INFO/WeatherClockWidgetProvider(582): bindViews
01-10 11:02:00.201: INFO/WeatherClockWidgetProvider(582): appWidgetId = 3

java code which reads the xml file containing the tabhost and tabwidget controls:

    public class tabs extends Activity{


        protected void onCreate(Bundle savedInstanceState) {

            super.onCreate(savedInstanceState);
            setContentView(R.layout.tabmain);

            TabHost tabs=(TabHost)findViewById(R.id.tabhost);

            tabs.setup();

            TabHost.TabSpec spec=tabs.newTabSpec("tag1");    
            spec.setContent(R.id.tab1);
            spec.setIndicator("tab1");
            tabs.addTab(spec);

            spec=tabs.newTabSpec("tag2");
            spec.setContent(R.id.tab2);
            spec.setIndicator("tab2");
            tabs.addTab(spec);

            spec=tabs.newTabSpec("tag3");
            spec.setIndicator("Favourites", getResources().getDrawable(R.drawable.favourites_star));
            spec.setContent(new Intent(this,RadioAppActivityGroup.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
            tabs.addTab(spec);

        }


    private class RadioAppActivityGroup extends ActivityGroup{


        protected void onCreate(Bundle savedInstanceState) {

            super.onCreate(savedInstanceState);

            View view = getLocalActivityManager().startActivity("radiotabs", new
            Intent(this, favourites.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView();

            this.setContentView(view);


        }   



   }


}

xml code containg the tabhost and layout controls:

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/tabhost"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TabWidget android:id="@android:id/tabs"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
    />
    <FrameLayout android:id="@android:id/tabcontent"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">

       <LinearLayout 
      android:id="@+id/tab1"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"/>

       <LinearLayout 
      android:id="@+id/tab2"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"/>

      <LinearLayout 
      android:id="@+id/tab3"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"/>

    </FrameLayout>
  </LinearLayout>
</TabHost>
  • 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-28T03:01:38+00:00Added an answer on May 28, 2026 at 3:01 am

    First read this official document of Tab Layout and after that improve your code

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a French site that I want to parse, but am running into
Basically, what I'm trying to create is a page of div tags, each has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

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.