Question

Possible Duplicate:
start Activity from an other Activity with Tabs

I have a TabHost containing 3 tabs. Having Act1, Act2, Act3 for 3tabs. Now i want to start a new activity (say Act4) onclick of a button in Act1. I should see the tabs when I'm in Act4. How can i start a new activity from my tab for a result? Please help me out.

 startActivityForResult(new Intent(Act1.this, Act4.class), CONSTANT);

The above line taking me to the Act4 screen but its not showing tabs. What should i do to see the tabs in Act4 and return back to Act1 with a result?

Was it helpful?

Solution

OTHER TIPS

Please see below link for complete example, it will solve your problem.

Start Activity from an other Activity with Tabs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top