Tab widget and activity

by ryla...@gmail.com » Thu, 12 Mar 2009 01:24:43 GMT


Sponsored Links
 I am trying to have both a tab widget and another activity running at
the same time. I am trying to start the second activity from the same
oncreate method as the tab widget;

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    mTabHost = getTabHost();

    mTabHost.addTab(mTabHost.newTabSpec("one").setIndicator
("one").setContent(R.id.textview1));
    mTabHost.addTab(mTabHost.newTabSpec("two").setIndicator
("two").setContent(R.id.textview2));
    mTabHost.addTab(mTabHost.newTabSpec("three").setIndicator
("three").setContent(R.id.textview3));

    mTabHost.setCurrentTab(0);

    Intent i = new Intent(Test.this, TestThing.class);

}

This only stops the tab widget from being shown(if i understand
correctly it would need a pause/ interrupt to show the tab activity),
I would however like it to work with these 2 running together.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Custom drawable shadow - how to make it (light-)grey?

I have a subclassed drawable - using it as an info balloon on maps.
Everything's fine besides one thing - it throws a shadow which is of
the same colors as the info balloon. Does anybody know how to make the
shadow (light-)grey - like usual drawable shadow?
--~--~---------~--~----~------------~-------~--~----~

2. Marker Info Window

Hey,

How can I make such a info "bubble" like you see at this image

http://www.lifeaware.net/images/screenshots/locatefriend.png

I'm looking for it for very long!

Thank you
--~--~---------~--~----~------------~-------~--~----~

3. For Orkut, Facebook,myspace users and windows Tips and tricks

4. ListView: Get the Highlighted Item

5. Question on performance of layout inflater

6. Corporate Android

7. gravity vs. layout_gravity? I'm lost.