0

I have created tabs using intents.MainPage.java is my class that extends TabActivity and other 5 activites that extends Activity which i have added as tabs. I need to get Strings from the 5 activities which i have added as tabs once a click is performed in the MainPage.java class

Shrikanth
  • 301
  • 4
  • 13

1 Answers1

0

From the documentation:

The TabActivity class is deprecated. New applications should use Fragments instead of this class; to continue to run on older devices, you can use the v4 support library which provides a version of the Fragment API that is compatible down to DONUT.

Here are some Fragment tutorials to help you get started.

Also, check out FragmentTabs.java on the developer site.

Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250