There are only two possible durations, the integer parameter refers to the possible constants which are LENGTH_LONG and LENGTH_SHORT. According to me, cancel() just cancels pending toasts in queue, this may not work on the current one.
On 1 déc, 06:30, Suchand Ghosh <chand4andr...@gmail.com> wrote: > what code base you r using? there should be function to hide toast. Hide > generally post a msg to mHandler to hide the Toast. > > On Tue, Dec 1, 2009 at 10:50 AM, Greg Donald <gdon...@gmail.com> wrote: > > On Mon, Nov 30, 2009 at 10:57 PM, Suchand Ghosh <chand4andr...@gmail.com> > > wrote: > > > Dear Greg Donald, > > > There is problem with Toast cancel() function, > > > t.cancel() will not cancel the inflight notification. > > > Better option use t.hide() instead of t.cancel(). > > > t.hide() doesn't seem to exist. > > > -- > > Greg Donald > >http://destiney.com/ > > > -- > > 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<android-developers%2bunsubscr...@googlegroups.com> > > 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 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