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

How to show Admob ads with different ad ids once different tabs are selected in Android?

At present, I'm using only one ad id and refreshing the ad after 30secs using a thread since its a Double Click ad and showing the same ad when any of the tabs are selected and showing the ads above the tabs. I have a requirement to show ads with…
Ingrid Cooper
  • 1,191
  • 3
  • 16
  • 27
0
votes
2 answers

Adding Search functionality to TabActivity

As per my application requirement i created a activity which extends TabActivity, added Tabs and different Activities as Content for those tabs. Upto this everything okay, but I want to add search functionality to entire TabActivity, that means…
Mahesh
  • 75
  • 1
  • 1
  • 6
0
votes
1 answer

Reload activity on tab changed

I have this activity in a tabhost and I need to reload it when I change to another tab, and came back to this activity, for my listview can refresh with the new items. Can anybody tell me how can I do this. Here is my favorites activity: protected…
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
0
votes
1 answer

Handle arrow keys in android

I would like to control arrow key events in android. I am testing the app in Samsung I5500 phone. The app consists of tabs. I was successful to capture the events using listeners. @Override public boolean onKeyUp(int keyCode, KeyEvent event) { …
0
votes
1 answer

getting nullpointer exception on getLocalActivityManager().getCurrentActivity()

I have a tabview which has 5 tab.Each and every is a single activity.In one tab it is opening a new activity which opening a alert.Till now every thing works fine. My problem is when I am coming back from(Back button press) that child activity it is…
A J
  • 4,542
  • 5
  • 50
  • 80
0
votes
1 answer

Dialog Box in Activity group inside a TabActivity not working

I'm trying to run an ActivityGroup embedded inside another ActivityGroup. (Example : an ActivityGroup inside a TabActivity) This seems to display properly but throw an exception when I'm trying to display a modal box like an AlertDialog.…
SibinF
  • 385
  • 1
  • 7
  • 25
0
votes
0 answers

ACTION_DOWN but pointers are already down. Probably missing ACTION_UP from previous gesture

I have a list view inside a tab which is inside another tab for the first time it showing when I am clicking a list this alert is showing properly.But when I am clicking another list without changing tab it showing this error TouchEvent: ACTION_DOWN…
A J
  • 4,542
  • 5
  • 50
  • 80
0
votes
2 answers

Error in adding a Spinner to an alertDialog

I am creating an android app by using TabActivity, in my TabActivity I have a button on click on the button I want to popup an alertDialog box, I need to add a spinner to the alert dialog box. The code for button click is given…
0
votes
1 answer

Issues with tabactivity and mainactivity using service

hi i have my app aacplayer but im trying to implement a tab menu i achieved that but my issue here when my app opens have to run MainActivity.java but that one have a service of audio but i added anothers tabs and works perfect that ones doesnt use…
0
votes
1 answer

nested FragmentActivities with ActivityGroup in tabHost

I use FragmentActivities in my Application and need to implement TabHost with nested Activities which can switch between one another. I use ActivityGroup for this purpose: public class CustomActivityGroup extends ActivityGroup { View…
0
votes
2 answers

How to create Tabhost layout that works for android>=froyo?

I want to create layout with TabHost and I want to create activity for each tab to do some calculation. In addition i want this to work on all android >=Froyo. I searched for the solution everywhere which was not clear and conclusive. So if anybody…
human
  • 637
  • 4
  • 15
  • 41
0
votes
1 answer

TabActivity with ActivityGroup

I was able to get a TabActivity working properly with multiple Activity's using ActivityGroup. However, I noticed a weird behavior. When clicking on multiple screens in one tab, going to another tab and navigating back to the original tab where user…
KVISH
  • 12,923
  • 17
  • 86
  • 162
0
votes
1 answer

im getting the red everywhare Tap Activity

Im getting problem on the extends TapActivity !! it seems like i dont have such thing in the library and when i change it to extends Activity it all goes right exept getTapHost(); i don't know whats the problem its really annoying !! …
0
votes
1 answer

BaseExpandableListAdapter is not called

In this class public class Rest_name_adapter extends BaseExpandableListAdapter { } I have put Logs in all the methods to check the sequence of called methods. But from the statement in my activity class exp_listView.setAdpater(new…
Kanika
  • 10,648
  • 18
  • 61
  • 81
0
votes
1 answer

Unable to obtain tabHost object on orientation change

I am trying to implement orientation feature in the app. The app is basically made of tabs, using TabHost. Each tab is an activity group with a few activities. Each of this child activity runs a background task using AsyncTask to pull out server…