Patrick wrote: > To say that TabHost not working without deriving from TabActivity is > not a bug is a bit strange. Buttons do not require the activity to > derive from ButtonActivity to not crash, do they?
You have a preconceived notion of how tabs should work, and Android's tabs may not meet that notion. Similarly, I have a preconceived notion of how a combobox should work, and neither Spinner nor AutoCompleteTextView meet my notion. The difference is, I don't claim Android's Spinner and AutoCompleteTextView are buggy, just because they don't behave quite as I'd like. > so it's not unreasonable to expect it to work like every > other UI elements : I should be able to place one in my layout > wherever I want, or maybe even have two of them in the same layout, > and it should not crash. I should be able to get the selected tab of > each of them individually, and do whatever processing I wish based on > that information. You are welcome to write a replacement if the supplied one does not do what you want, just as there is a myriad of widgets in desktop UI frameworks that replace OS-supplied ones to overcome various perceived limitations. For example, someday, I may craft something closer to my vision of a combobox. > That aside, what skinks mention is precisely where my problem lies : > the call to setup() crashes. And the error is...what? Post a traceback from adb logcat, DDMS, or the Eclipse equivalent, and we may be able to help. I confess to perhaps jumping the gun on TabHost and kin not working outside TabActivity. That is definitely the case for MapView/MapActivity, and I may have drawn an incorrect parallel. Being short on sleep ain't helping my cognitive faculties... :-( So, give us some exception information, and let's see if we can solve your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

