Hi Mark, I owe you one after today haha.  So in order to keep it all
together in the same activity I would just create a separate Layout in my
XML file and give it an ID I can pass to the TabHost?  And then since its
all in the same activity I can use onTabChanged() to run any updates to my
database/adapters/cursors?

On Fri, Nov 20, 2009 at 3:01 PM, Mark Murphy <[email protected]>wrote:

> JasonMP wrote:
> > Reason for confusion:
> >
> > I start my app and it loads to default TAB1.
> >
> > I select TAB2 at the top and it switches to TAB2...in my onResume()
> > for TAB2 I display a Toast "Hello" and it is displayed.
>
> I take it that TAB2 is using an Intent to load an activity in the
> contents of the tab.
>
> One of these days, I'm going to figure out why people keep using this
> rather than just using simple Views for tab content. Using activities
> adds extra complexity for no obvious added value. Maybe I need sterner
> language in my book...
>
> Regardless, if my above assumption is correct, the reason onResume() is
> called here is that the activity is first being created, and onResume()
> is called as part of the creation path, after onCreate() and onStart().
>
> > I go back to TAB1....everything ok here.
> >
> > i go back to TAB2....no Toast displayed from the onResume().
>
> Correct, because the in-tab activity already exists and was not paused.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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