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 <[email protected]> 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 <[email protected]> wrote: > > On Mon, Nov 30, 2009 at 10:57 PM, Suchand Ghosh <[email protected]> > > 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 [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

