[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-09 Thread mscwd01
Okay folks, I seem to have found a solution thanks to the helpful people who posted above. Here it is... 1. Create a new class called TabbedMapActivity 2. Paste this in the new class: import android.app.Activity; import android.app.LocalActivityManager; import android.os.Bundle; import

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread mscwd01
Anyone? I'm guessing its possible but I cant find an obvious solution... On Dec 8, 5:45 pm, mscwd01 [EMAIL PROTECTED] wrote: I need a way to create a TabHost which has an intent as the tabs content, e.g: TabHost tabs = (TabHost)findViewById(R.id.tabhost); tabs.setup(); TabSpec spec1 =

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread Mark Murphy
mscwd01 wrote: Anyone? I'm guessing its possible but I cant find an obvious solution... Alas, I don't think it is possible, unless you fancy getting your hands dirty in the Android source code. You need the activity that is managing the tabs to be an ActivityGroup if you want one or more

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread mscwd01
Thanks again for your time helping me with this, very much appreciated. The content I wish to include in each tab are WebViews, I hadn't really thought about it but I may be able to achieve what I want without using intent-based tab content. Just out of interest, my Activity is getting rather

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread Mark Murphy
mscwd01 wrote: The content I wish to include in each tab are WebViews, I hadn't really thought about it but I may be able to achieve what I want without using intent-based tab content. Absolutely! Just out of interest, my Activity is getting rather large, is there a way to define a WebView

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread Dianne Hackborn
Fyi, ActivityGroup is very simple and as far as I know doesn't use any internal methods: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/app/ActivityGroup.java;hb=HEAD It's basically the same as ListActivity, a convenience class for a common pattern