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
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 =
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
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
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
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
6 matches
Mail list logo