>From the dev guide
(http://developer.android.com/reference/android/widget/Toast.html):

"A toast is a view containing a quick little message for the user. The
toast class helps you create and show those.
When the view is shown to the user, appears as a floating view over
the application. It will never receive focus. The user will probably
be in the middle of typing something else. The idea is to be as
unobtrusive as possible, while still showing the user the information
you want them to see. Two examples are the volume control, and the
brief message saying that your settings have been saved."

Think of it like the transient notification pop-ups you get in Pidgin
or MSN messenger. It appears for a pre-determined amount of time, at a
position specified by the developer. It differs from a pop-up dialog
because you can continue to interact with the UI whilst it is being
displayed, and you are not expected to act on it.

The period of time for a toast is customisable, you want to use the
setDuration() method to change it:
http://developer.android.com/reference/android/widget/Toast.html#setDuration(int).


On Tue, Nov 10, 2009 at 11:25 AM, pushkar bandi <pushkarse...@gmail.com> wrote:
> Hi,
>
> Could somebody give me some detailed information about toast?
>
> I got a comment saying that "This is called a "toast" and cannot be
> dismissed by the user. Toasts are dismissed automatically after a fixed
> period of time."
>
> Then why the period of time for a toast is more, which degrades the user
> experience.
>
> Thanks
>
> Regards
> Pushkar Setty
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to