It seems you cannot change the Activity of the current tab using
setContent(); That being said... Doing something you really probably
should not do, you can get this to work: Programmatically switch to
another tab (something like getTabHost().setCurrentTab(1);), then do
MainTabActivity.projectTab.setContent(i);, then go back to the
original tab (something like getTabHost().setCurrentTab(0);). Like I
said though... this is probably not something you should do.

On Sep 17, 1:52 pm, Wouter <[email protected]> wrote:
> Does someone has found an easy solution for this? I have the same
> issue. I have 3 tabs and I want to show a new activity in one of these
> tabs!
>
> Wouter
>
> On Aug 12, 3:47 pm, Sena <[email protected]> wrote:
>
> > Thanks for the pointers Mark.
> > S
>
> > On Aug 12, 3:16 pm, Mark Murphy <[email protected]> wrote:
>
> > > Sena Gbeckor-Kove wrote:
> > > > Thanks for the tip. Can you point me at what I need to be looking up to
> > > > find the documentation about changing the viewinsidetheTab?
>
> > > You don't change the Viewinsideof atab. You cause the existing View
> > > to show something else (e.g., use FrameLayout and make one layer VISIBLE
> > > and another layer GONE, or use ViewFlipper to swap between contents).
>
> > > You *might* be able to get setContent() to replace the current View by
> > > passing in another layout ID or TabContentFactory, but I'm skeptical
> > > this will work.
>
> > > Thetabwidget framework in Android is designed for simple stuff. You
> > > may wish to grab the source code for the relevant classes out of Android
> > > and make your own version that handles your own scenario.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > > Warescription: Three Android Books, Plus Updates, $35/Year
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to