Actually I am using 2 Tabs.Both of the tab is having different activity.Now when I run the application, I want to show some 3rd(any) Activity below the 2 tabs while none of the Tab is active,and this activity will change according to Menu Button.And when a tab is pressed it will show its activity.Again when I will use menu button ,then Tab will become inactive,and menu activity will show again below Tabs.If Yes, then How?
Asked
Active
Viewed 93 times
1 Answers
0
Why can't you disable/make the tabs when the third activity is shown. Enable the tabs when they are selected or touched or clicked.

dcanh121
- 4,665
- 11
- 37
- 84
-
Third Activity Got the Error which is being called from menu though I have already set android:id="@android:id/tabs".....Error is-- Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' – Shahzad Imam Feb 17 '12 at 19:11
-
Are you trying to extend TabActivity or Activity? If you are extending Activity, then follow these steps. http://stackoverflow.com/a/5098774/563306 – dcanh121 Feb 17 '12 at 19:12
-
I believe you cannot use TabActivity for the third activity because its not in the tabs. You may use Activity, and findViewById(R.id.tabHost) in xml. – dcanh121 Feb 17 '12 at 21:00
-
Third one is activity extended.L – Shahzad Imam Feb 18 '12 at 05:18