Questions tagged [tabactivity]

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

323 questions
20
votes
4 answers

Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception: java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call…
Morten Holmgaard
  • 6,452
  • 6
  • 55
  • 79
19
votes
4 answers

Android. How to change Activity within a Tab

Following situation: I have TabActivity with e.g. three tabs, TabA, TabB, TabC. There are a button in activity (Act_C_1) of TabC. So if the user clicks on that button, another activity (Act_C_2) should occur in TabC. I thank you in advance for any…
Tima
  • 12,040
  • 22
  • 74
  • 121
10
votes
3 answers

What is the best way to find out the number of Tabs in a TabActivity?

I create tabs dynamically in a TabActivity. Is there a simple way to ask for the number of existing Tabs?
Janusz
  • 176,216
  • 111
  • 293
  • 365
8
votes
0 answers

Android - TabScreen orientation causes all my screens to be reset?

I currently have a Tab Screen in my Android application, it hosts 4 other activities from its Tabs. I set up each tab as follows: intent = new Intent().setClass(this, LiveActivity.class); spec =…
Donal Rafferty
  • 19,239
  • 37
  • 110
  • 186
7
votes
5 answers

How to make oval shape tabhost in android

I tried to make oval shape tabhost as expected below shape. I tried the below codes. public class AndroidTabLayoutActivity extends TabActivity { TabHost tabHost; @Override public void onCreate(Bundle savedInstanceState) { …
7
votes
7 answers

Feature Custom Title: Cannot combine custom titles on API 11 and above

I have a project in which i setted: minSdkversion setted to 10 MainActivity is a TabActivity Code in onCreate method is…
6
votes
1 answer

android:configChanges seems to be ignored

I try to prevent that onCreate() is called when rotating the device. To reach this goal I followed the documentation and added
J H
  • 63
  • 2
6
votes
4 answers

TransactionTooLargeException in Nougat

Exception 05-12 15:42:45.791 11043-11043/ E/UncaughtException: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 631792 bytes at…
5
votes
2 answers

Activity in tab host goes blank

I am having tab host with three tabs.In the first tab i am doing some bitmap operations on a canvas(bit heavy). Whenever i move on to second or third tab,the activity in the tab goes blank.I have a edit text in tab 1,so when ever the soft keyboard…
androidGuy
  • 5,467
  • 10
  • 34
  • 53
5
votes
6 answers

Swipe to switch tabs on Android, like the YouTube/Google Music apps

In their latest versions of their apps, Google has implemented a pretty cool way of swiping between tabs versus clicking tab headers. I was wondering if someone has more concrete ideas of how this is done. Here are some thoughts - feel free to…
psychotik
  • 35,551
  • 33
  • 95
  • 134
5
votes
2 answers

Controlling Tab colour-state / size in a TabActivity?

Ok, this is driving me nuts - I've searched all of the references and examples I can find and I still seem to be missing something really obvious. These are the tabs for a 7-day TV Guide (not normally with the red arrow, obviously :) )... What I…
Squonk
  • 47,603
  • 18
  • 99
  • 134
5
votes
3 answers

Start another Activity inside the FrameLayout of TabActivity

I am trying to make an application which have 4 tabs at the bottom of the screen. All of them contain Activity (Intent). And I want to navigate any of the Activity to another activity. But want to keep the TabWidget visible. Let me know as quickly…
Shaiful
  • 5,433
  • 5
  • 36
  • 40
5
votes
1 answer

TabActivity child Activity with BroadcastReceiver stays alive in background

I have a TabActivity called MyTabActivity containing several tabs that I create using this code: public class MyTabActivity extends TabActivity { public void onCreate(Bundle savedInstanceState) { setContentView(R.layout.my_tabs); …
user1697736
5
votes
2 answers

Why is TabActivity deprecated (reason)?

This is not a duplicate of How can I use fragments, now that TabActivity is deprecated? After some research the conclussion is that TabActivity is deprecated because we now have to use fragments. And the reason for that, as far I read, is that…
Ixx
  • 29,955
  • 39
  • 123
  • 217
4
votes
1 answer

Android SearchView not allowing typing (conflict with TabActivity?)

I am working on an application that uses a SearchView embedded in the ActionBar. It works perfectly across the app, except for in one Activity. In this Activity, I can click the search icon to display the search view across the action bar, but as…
user1031648
  • 553
  • 1
  • 4
  • 9
1
2 3
21 22