Anyone? I'm guessing its possible but I cant find an obvious
solution...

On Dec 8, 5:45 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> I need a way to create a TabHost which has an intent as the tabs
> content, e.g:
>
> TabHost tabs = (TabHost)findViewById(R.id.tabhost);
> tabs.setup();
> TabSpec spec1 = tabs.newTabSpec("TabOne");
> spec1.setIndicator("Tab One", this.getResources().getDrawable
> (R.drawable.tab_icon));
> spec1.setContent(new Intent(this, MyTabClass.class));
> tabs.addTab(spec1);
>
> Without extending TabActivity.
>
> I am currently extending MapActivity, which I cannot change as it is
> needed. Therefore, I currently get the following error at runtime,
> when the tab is clicked:
> java.lang.IllegalStateException: Did you forget to call 'public void
> setup(LocalActivityManager activityGroup)'?
>
> Is there a way to call "setup(LocalActivityManager activityGroup)"
> WITHOUT extending TabActivity?
>
> Please say there is ;)
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to