Questions tagged [tabactivity]

This tag is related to android TabActivity. It is an activity that contains and runs multiple embedded activities or views.

320 questions
3
votes
2 answers

Force tab content to update after async task completes

I have a TabActivity with 3 tabs. There is an async task that when run by clicking a menu item for refresh, retrieves updated data from the server. This data is stored in the controller and is accessed by all views, so that the model only needs to…
Josh
  • 16,286
  • 25
  • 113
  • 158
3
votes
0 answers

Android: TabHost Activity acting weird after kill / OnSaveInstanceState not called

I am not sure if I am doing something wrong, but as I just stumbled upon a similar bug, it might be another bug as well. I was wondering if you could confirm this or even know a solution? Okay, so I have a Tab Host containing two Activities A and…
jellyfish
  • 7,868
  • 11
  • 37
  • 49
3
votes
3 answers

onKeyDown or onBackPressed in a parent activity

I have a TabActivity that shows other Activities as the content based on which tab is selected. What I want to do is from the 'parent' Activity try to capture the back key press, but neither onKeyDown() nor onBackPressed() ever get called in the…
Jeremy Logan
  • 47,151
  • 38
  • 123
  • 143
3
votes
1 answer

Android ActivityGroup back first activity on click

I have an application with a TabActivity containing ActivityGroup. Each tabs works fine, but for one specific tab I want to go back to the first child activity when there's a click on it (whenever we are in a child activity of this tab or inside…
magiccyril
  • 657
  • 1
  • 6
  • 14
3
votes
2 answers

Android UI TabActivity issue

I am trying to implement the following background for the application... For the background image(application background) ... i am setting the image in setContentView(layout)... by adding this line, i am getting a runtime exception... if i set this…
Arun Abraham
  • 4,011
  • 14
  • 54
  • 75
3
votes
1 answer

Is it OK to recreate activity in onRestart()

I have a complex TabActivity that contains ListViews and TextViews. Instead of messing up with manual UI update I decided to "recreate" activity (force full redraw) whenever it comes to foreground. Assume that i navigate from activity A to B. When…
Zhaidarbek
  • 310
  • 2
  • 12
3
votes
1 answer

Is there any good solution for searching in TabActivity for each activity in tab respectively?

I have problem with Activities navigation, searching works good. Activities hierarchy looks like that: / MyListActivityA -- ItemActivityA MainActivity -- MyTabActivity -- MyListActivityB -- ItemActivityB …
pawelzieba
  • 16,082
  • 3
  • 46
  • 72
3
votes
1 answer

How use ListView in android Tab?

Good day. In my app I have three tab (one Activity extend TabActivity and others activitys provides access to content). In first tab I have ImageView, a few TextView and it is works. But when I add ListView and in activity that contain ListView I…
user559730
3
votes
2 answers

Intent to open a specific tab of tabbed activity

I have a tabbed activity with 5 tabs. Each tab has only one Imageview. On a previous page I have 5 buttons and I want to create an interface such that each button starts the tabbed activity but the first tab which is visible is specific to that…
3
votes
1 answer

How to Create Tab in android using TabActivity or FragmentActivity

I would like to create tab in android but really I don't know how to create and just downloaded some video but really this isn't helpful I used TabActivity unfortunately it's deprecated :( so that I need you to help me out thanks for any…
ROR
  • 271
  • 3
  • 29
3
votes
1 answer

BadTokenException ActivityGroup for TabActivity using

I need implement nested Activities in TabHost in my app. I use such ActivityGroup class : public class CustomActivityGroup extends ActivityGroup { View rootView; public static CustomActivityGroup group; private ArrayList
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
3
votes
1 answer

NFC intent on TabActivity starts a new activity instead of refreshing existing one

After my old question was closed I'm trying it now again considering the advices you gave me... I've got an Android-Test-App in which I want to change the text a TextView as soon as something (f.e. RFID chip) is read with NFC. The problem is that my…
3
votes
3 answers

Set Intent to back key in TabActivity

I have three Activities - A B and C, of which B is a Tab Activity. Activity A is launched first, and B is launched from A. I finish Activity A when B is launched using this code public void onStop() { super.onStop(); this.finish(); } Now I…
darsh
  • 741
  • 4
  • 10
  • 34
2
votes
1 answer

Closing/restarting Activities in TabHost

I'm developing an Android 2.3.3 application which consists of a top-level TabActivity. I'm also adding a number of tabs to the TabHost programatically and giving each one a separate child Activity: intent = new Intent().setClass(this,…
Mark Feldman
  • 15,731
  • 3
  • 31
  • 58
2
votes
3 answers

change tab background color in TabActivity

I am trying to change the background color of tab in TabActivity. for that I did like below, tabHost.getTabWidget().getChildAt(totalTabs1-1).setBackgroundColor(Color.parseColor("#984b9d")); but its not working properly what i want. Is there any…
Narendra
  • 1,868
  • 6
  • 25
  • 39
1 2
3
21 22