On Thu, Aug 18, 2011 at 6:55 AM, Appaholics <raghavs...@appaholics.in> wrote: > I tried using a postDelayed like this: > > final Runnable r = new Runnable() > > { > > public void run() > > { > > myBanner.refresh(); > > handler.postDelayed(this, 10000); > > } > > }; > > handler.postDelayed(r, 10000); > > It still doesn't work. It updates continuously, instead of the ten seconds I > specified.
Either you are calling this too often (thereby scheduling lots of Runnables), or the problem lies in myBanner.refresh() somewhere. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en