Questions tagged [android-tabactivity]

TabActivity is an Activity class that contains and runs multiple embedded activities or views.

The TabActivity is an Android Activity subclass that can be used to show content in the form of tabs(with either Views or other child Activities). With the introduction of Fragments the TabActivity is deprecated and shouldn't be used in new written code(in favor of the more robust Fragment framework).

260 questions
0
votes
1 answer

Pulling data from one Tab Activity to another

Everything I've read about Intents talks about using them to push data, or to start one Activity from another Activity. I want to pull data from an Activity that's already running. The Tab Layout tutorial at…
0
votes
1 answer

Editing a custom tab's text

I have a Tab that has a custom layout which contains a TextView. I will need to later update that text from the actual tab child. Here's how I set it up in the TabActivity private void setupTab(final String tag) { //Call createTabView() to give…
bwoogie
  • 4,339
  • 12
  • 39
  • 72
0
votes
1 answer

Nested PreferenceScreen, when called, replacing Whole Screen

I wrapped my PreferenceActivity within a TabActivity. Thing looks good. but when I introduced "2nd level PreferenceScreen" to my PreferenceActivity and when someone clicked on it, it replaces the whole screen. is there anywhere I can retain my tab…
You Qi
  • 8,353
  • 8
  • 50
  • 68
0
votes
1 answer

TabGroupActivity - startChildActivity - not working

I have been using TabActivity and I want the tab to display on every child activity. I have flow like this MainActivity(TabActivity) -> TabGroupActivity1(TabGroupActivity) -> Activity1 -> Activity2 Now i want to redirect on Activity2 only if the…
Nixit Patel
  • 4,435
  • 5
  • 30
  • 57
0
votes
2 answers

Android: TabActivity deprecated using Fragment instead

I'm trying to implement a MenuBar (i need it always visible so the context menu is not useful !) in the bottom of every activity for my app. I saw that the easy to use TabActivity is now deprecated...and so i didn't get yet ho should i use the…
Lorenzo Sciuto
  • 1,655
  • 3
  • 27
  • 57
0
votes
1 answer

TabActivity listener with onCreate()

I have a project with two tabs. Tabs are created in the main class. Here I added the tablistener too, to handle the changes between the tabs. Here is one tab's instant: TabHost tabHost = getTabHost(); tabHost.setOnTabChangedListener(this); …
MMMM
  • 1,319
  • 1
  • 14
  • 32
0
votes
1 answer

How to return result from Tabs to my Activity

I am developing an application using android 2.1. In one Page, upper part have two textviews and lower part have tablayout having two tabs. My XML code is like this...
Manoj Agarwal
  • 703
  • 3
  • 17
  • 39
0
votes
2 answers

Android TabHost content not showing

I've created a TabHost and assigned 4 activity intents with tabs and these seems to work just fine. My only problem is that the activity content is not showing within the framelayout #tabcontent in my tabhost view. I've followed the official…
Daniel
  • 3,726
  • 4
  • 26
  • 49
0
votes
4 answers

TabActivity GroupActivity Back button dont work

i have a problem with back button in tabactivity und grouptactivty. i have 4 tab, in a tab i have there more 3 activity too. when i call a activity, it is withouts problems. but if i click to the back button, than my app close completle. Here are my…
Lucky
  • 81
  • 11
0
votes
1 answer

Handling the data on the Screen during the Navigation in Android

I am working on the application where I am using the TabActivity. Now what the problem I am facing is Suppose I have two Screens say Screen A and Screen B. Now when I am in Screen A and I enter the Data in the EditBox of it and then I switch to the…
David Brown
  • 4,783
  • 17
  • 50
  • 75
0
votes
1 answer

TabActivity showing several tabs of the same activity (Initialize properties on child activities)

I have just started android development 3 days ago and I'm trying to develop a messenger for Yahoo. Hell of a first application, right?! :D The problem I'm facing right now is that I'm trying to implement a tabbed IM window which is supposed to show…
Maghoumi
  • 3,295
  • 3
  • 33
  • 49
0
votes
1 answer

How to call different activity on same tab

I need to implement tabs in my project.i have a layout, in which i have two tabs and a button. For two tabs,I have two activities and button calling different activity. the thing is I am showing result of button on first tab. now what i want is,if i…
Romi
  • 4,833
  • 28
  • 81
  • 113
0
votes
1 answer

Adding an intent to a TabActivity in Android

I checked up some online tutorials on how to build a TAB in android and saw a tutorial that fit my requirements. I was happy to implement it and it worked well. The problem came when I wanted each separate tab to push to one separate activity. I…
Vinoth
  • 1,339
  • 6
  • 23
  • 42
0
votes
1 answer

How to set a new activity with tablayout

|In my android application, i have two tabs on all pages. one tab say for activity1 and second for activity2. let suppose i am at one of my application page, and clicking on a button of this page, i need to call a third activity, which will be…
Romi
  • 4,833
  • 28
  • 81
  • 113
0
votes
1 answer

Start system activity inside my own layout

my app uses TabHost layout. Each tab has one Activity. One of my tabs has to only start systems Music Player activity so I used startActivity(new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER)); . But then I loose sight of my tabs. Is there a…
user1042800