presumably, except my code that I place in the onResume never gets run when the tabs are switched.
On Nov 20, 1:27 pm, Lance Nanek <[email protected]> wrote: > Doesn't onPause get called on the activity whose tab you are leaving > and onResume get called for the activity whose tab you are going to? > > On Nov 20, 11:22 am, JasonMP <[email protected]> wrote: > > > > > Eddie, > > > The onTabChanged must be called from with my main TabActivity correct? > > > If this is the case this isn't the solution I'm looking for. I have a > > TabHost that run a new activity in a tab. From within that activity I > > will the screen with a ListView. I need to be able to refresh that > > ListView each time the user selects that tab. > > > On Nov 20, 10:25 am, JasonMP <[email protected]> wrote: > > > > Hey, Thanks Eddie. > > > > On Nov 20, 10:18 am, Smelly Eddie <[email protected]> wrote: > > > > > Hmmm.. > > > > > If only the documentation clearly outlined some sort of 'onTabChanged' > > > > listener.... well that would be exactly what you need. > > > > > Shame that the SDK reference doesn't have a pge liek this > > > > one,http://developer.android.com/reference/android/widget/TabHost.OnTabCh... > > > > that introduces such a method. > > > > > Yes, I am being sarcastic. RTFM > > > > > On Nov 19, 3:39 pm, JasonMP <[email protected]> wrote: > > > > > > Hi, > > > > > I have an app that is broken up int a few tabs across the top. Each > > > > > tab runs an activity that modifies different areas of my database. > > > > > What I'm trying to accomplish is that each time a user changes tabs, i > > > > > want to be able to run some code to update the displays with any new > > > > > information from the database. How do I specify that a specific > > > > > function is supposed to run when the tab is activated? the onStart()/ > > > > > onCreate() dont seem to be doing it. -- You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en

