Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

by mscwd01 » Tue, 09 Dec 2008 01:45:24 GMT

Sponsored Links
 I need a way to create a TabHost which has an intent as the tabs
content, e.g:

TabHost tabs = (TabHost)findViewById(;
TabSpec spec1 = tabs.newTabSpec("TabOne");
spec1.setIndicator("Tab One", this.getResources().getDrawable
spec1.setContent(new Intent(this, MyTabClass.class));

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 ;)



Other Threads

1. Help with Hacking the State of the Union

Over the past few days I've hacked together an experiment that targets
using an app to augment live television.  I've described it here:

It's interesting in that it takes advantage of the Android platform
talking to a Google App Engine back end to solicit real-time sentiment
feedback during the course of the speech.  The State of the Union is a
great venue to test out the concept and portions of a generic platform
that I'm working on for future projects along the same lines.

If there are any friendly devs that are planning on watching the State
of the Union tomorrow and would not mind installing the app and then
giving me feedback that would be much appreciated.

The GAE portion of this has been the most challenging, really.  It
would be nice if GAE would start offering services specifically
targeted at supporting long-lived connections with Android clients.
The biggest wild card in this whole experiment is whether the GAE app
will be able to withstand X number of clients polling.  I thought
about Cloud to Device, but I wanted a bigger user base than Android
2.2+ would provide.  Anyone else doing something similar?  What has
your approach been?

I'll post some follow up later with results of the experiment and a
bit more detail on architecture.



2. http connection

hey everybody.

I'd like tu do a Http connection to a server with this lib :

But, that's very difficult to me. i'm lost in all the interface &

So, if someone can describe me the different programming step or give
me some tuto or example (source), that will be nice.


(sorry about my english, I'm French)


3. android:horizontalSpacing

4. citrix gateway access problem

5. Map utk Ndrive

6. Javascript to call the NPAPI Plugin directly

7. Problem with adjustPan andadjustResize