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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

