Can any one give me java code to the below emulator images needs?

The above emulator image is just getting the input from the user and showing the answer in the edittext of the same page.But i need to show that answer on the Tabhost ( which wants to be on the next page ) like the below image..

Thanks a lot!..
How you start the next TabActivity?
When you create Intent for starting YourTabActivity you can put answer in this Intent like:
In your FirstActivity in onCreate(Bundle savedInstanceState) method you can get your answer, like:
or, if your answer put as String:
When you get your answer you can insert it anywhere in layout of that activity.
For sending primitive and serializeable data between Atstivites use Intent.putExtra()