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 i put the android tabactivity at the bottom of activity?

On default the tabactivity is in the top of the activity How i put the android tabactivity at the bottom of activity ? (like ios tabview) thanks a lot by
0
votes
1 answer

TabGroupActivity : WindowManager$BadTokenException: Unable to add window

my app is crashing, when I am going to add Activity which extends TabGroupActivity into TabHost.Fallowing is the code. When I directly add HomePage, everything works fine, But when HomePageTabGroup is added, app unfortunately closed.…
Umesh Suryawanshi
  • 934
  • 1
  • 7
  • 21
0
votes
0 answers

How to dereference subactivity of TabActivity

My application is having 7 Activity inside a TabActivity so every activity is associated with one intent having TabActivity context.What I am observing that when i switch from one activity to another the my heap size increases that means my old…
0
votes
4 answers

TabHost.TabSpec setIndicator

I want to get rid of the default indicator to achieve the same result when a tab is selected (no indicator). I've tried: TabHost.TabSpec specs = tabHost.newTabSpec("").setIndicator("").setContent(intent); TabHost.TabSpec specs =…
GuilhE
  • 11,591
  • 16
  • 75
  • 116
0
votes
2 answers

Can't get onActivityResult when starting an activity from a child activity in TabActivity Android

In MainActivity.java, I extends TabActivity to use Tabhost. public class MainActivity extends TabActivity In each Tab, I use ActivityGroup to manage some child activity public class MerchandiserTabGroupActivity extends ActivityGroup In a child…
Huy Duong Tu
  • 7,798
  • 5
  • 25
  • 46
0
votes
1 answer

Removing the tab and readding it causes the following error in my Android App

I have created a tabbedActivity for an android app and when I remove one of the tabs and re add it I get the following error 06-28 17:14:22.803: E/AndroidRuntime(18564): FATAL EXCEPTION: main 06-28 17:14:22.803: E/AndroidRuntime(18564):…
yams
  • 942
  • 6
  • 27
  • 60
0
votes
0 answers

Error in TabActivity when returning from Sleep/StandbyMode

I have used TabActivity in my Android Application. Everything works fine, except the following scenario: I close the app by using the home button I turn off the phone (standby mode) After a while I turn on the phone and I want to return to my…
0
votes
3 answers

How do I clear the map of All points and markers and routes when switching tabs with a tab host

I created an App that uses Google Maps to get the users current location and draw routes. Recently I converted this app to a TabHost with five tabs. Because of this I now need a way to clear and restart the map whenever a user clicks on that tab. …
0
votes
1 answer

How to remove all activities from ActivityGroup stack and load the first activity in current tab on tab click event

I created a project long ago using the TabActivity and ActivityGroup (deprecated now). The question is may be simple but first I want to clarify the flow. I have 4 tabs in my Tabhost. I have used the following code to keep track of activity back…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
0
votes
1 answer

TabGroupActivity is calling two Activities at a time eventhough I do setCurrentTab for only one

In my Android Application, I am using TabbedGroupActivity, where it is maintaing 5 tab Activities, when the app is in background for a while 30 mins or so. The tab selection automatically changing to default tab. but the Activity View is not…
candy
  • 734
  • 1
  • 11
  • 22
0
votes
1 answer

change current tab after calling tabactivity by intent

I am having a Tabactivity with two tabs and I am calling this tab activity from other activities ..but I want to set tab according to activity from where tab activity has been called .For that I have used intent flag SINGLE TOP and override…
0
votes
1 answer

Open a TabActivity with "simple" Activity

I have a problem when I try to open a TabActivity with an intent from an Activity. The code of my activity (ConnexionActivity), which is NOT an activity from a tab : buttonConnexion.setOnClickListener(new OnClickListener(){ …
0
votes
0 answers

Sub Activities under TabActivity and Back button in android

I have to show multiple activities under same tab. I have followed the below http://androidcodeexamples.blogspot.in/2012/08/multiple-android-activities-in.html. But when I'am in sub activity and press back button, it is restarting the main/tab1…
Santhosh
  • 4,956
  • 12
  • 62
  • 90
0
votes
4 answers

Catch statements not working in android

I am working with an android database oriented program. This activity is from one of my tab. When i press that particular tab it will get the value from the db and if any null values from the db it will catch it and show an alertbox and changing to…
Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55
0
votes
1 answer

Reload a single tab in a tabview after doing sync

I have a five tab's all are individual activity, I want to reload one activity after doing Sync without tab view I have done Intent intent = getIntent(); finish(); startActivity(intent); How to do in a tabview
A J
  • 4,542
  • 5
  • 50
  • 80